C#
C#
Example: Crypt2.DecodeString method
Demonstrates how to call the DecodeString method.Chilkat C# Downloads
Chilkat.Crypt2 crypt2 = new Chilkat.Crypt2();
// The string "Hello World" in base64 (using the utf-8 byte representation) is "SGVsbG8gV29ybGQ="
string encodedStr = "SGVsbG8gV29ybGQ=";
string encoding = "base64";
string charset = "utf-8";
string str = crypt2.DecodeString(encodedStr,charset,encoding);
Debug.WriteLine(str);
// Output is "Hello World"