Net Encryption Library
EncodeBase32 Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : EncodeBase32 Method
Encode the passed bytes as a Base32 Encoded String
Syntax
'Declaration
 
Public Function EncodeBase32( _
   ByVal input() As System.Byte _
) As System.String
'Usage
 
Dim instance As Encryption
Dim input() As System.Byte
Dim value As System.String
 
value = instance.EncodeBase32(input)
public System.string EncodeBase32( 
   System.byte[] input
)
public function EncodeBase32( 
    input: System.Bytearray of
): System.String; 
public function EncodeBase32( 
   input : System.byte[]
) : System.String;
public: System.string* EncodeBase32( 
   System.byte[]* input
) 
public:
System.String^ EncodeBase32( 
   System.array<byte>^ input
) 

Parameters

input
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 base32String = encryption.EncodeBase32(bytes);
byte[] decodedBytes = encryption.DecodeBase32(base32String);
 
Console.WriteLine(base32String);
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 base32String As String = encryption.EncodeBase32(bytes)
Dim decodedBytes() As Byte = encryption.DecodeBase32(base32String)
 
Console.WriteLine(base32String)
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