coding
Public string encodebase64 (String code_type, string code)
{
String encode = "";
Byte [] bytes = encoding.getencoding (code_type);
Try
{
ENCODE = Convert.TOBASE64STRING (bytes);
}
Catch
{
ENCODE = CODE;
}
Return ENCODE;
}
decoding
Public string decodebase64 (String code_type, string code)
{
String Decode = "";
Byte [] bytes = convert.FromBase64String (Code);
Try
{
Decode = Encoding.Getencoding (Code_Type) .getstring (bytes);
}
Catch
{
Decode = Code;
}
Return Decode;
}