Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 921 Bytes

File metadata and controls

43 lines (30 loc) · 921 Bytes

Convert.ToBase58String Method

Definition

Namespace: Blazor.ZeroStorage
Source: ConvertExtensions.cs

Converts a byte array to a Base58 string.

public static string ToBase58String(byte[] value)

Parameters

value Byte[]
The byte array to convert.

Returns

String
The Base58 string representation of the byte array.

Examples

using Blazor.ZeroStorage;

public class Example
{
	public static void Main()
	{
		string value = "Hello, World!";
		byte[] utf8 = System.Text.Encoding.UTF8.GetBytes(value);

		string base58 = Convert.ToBase58String(utf8);
		Console.WriteLine(base58);

		// Output:
		// 72k1xXWG59fYdzSNoA
	}
}