Net Encryption Library
DecodeBase58NoChecksum Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : DecodeBase58NoChecksum Method
Decode a Base58 Encoded string with no checksum into bytes
Syntax
'Declaration
 
Public Function DecodeBase58NoChecksum( _
   ByVal encoded As System.String _
) As System.Byte()
'Usage
 
Dim instance As Encryption
Dim encoded As System.String
Dim value() As System.Byte
 
value = instance.DecodeBase58NoChecksum(encoded)
public System.byte[] DecodeBase58NoChecksum( 
   System.string encoded
)
public function DecodeBase58NoChecksum( 
    encoded: System.String
): System.array of Byte; 
public function DecodeBase58NoChecksum( 
   encoded : System.String
) : System.byte[];
public: System.byte[]* DecodeBase58NoChecksum( 
   System.string* encoded
) 
public:
System.array<byte>^ DecodeBase58NoChecksum( 
   System.String^ encoded
) 

Parameters

encoded
Example
Encryption encryption = new Encryption(); //Trial Mode
//Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
 
byte[] bytes = new byte[255];
 
for (int i = 0; i < 255; i++)
    bytes[i] = (byte)i;
 
string base58 = encryption.EncodeBase58NoChecksum(bytes);
byte[] decodedBytes = encryption.DecodeBase58NoChecksum(base58);
 
Console.WriteLine(base58);
Dim encryption As New Encryption() 'Trial Mode
'Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
 
Dim bytes(254) As Byte
 
For i As Integer = 0 To 254
    bytes(i) = CByte(i)
Next i
 
Dim base58 As String = encryption.EncodeBase58NoChecksum(bytes)
Dim decodedBytes() As Byte = encryption.DecodeBase58NoChecksum(base58)
 
Console.WriteLine(base58)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Encryption Class
Encryption Members