Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# encrypt decrypt string

public static string Base64Decode(string base64EncodedData)
{
   var base64EncodedBytes = System.Convert.FromBase64String(base64EncodedData);
   return System.Text.Encoding.UTF8.GetString(base64EncodedBytes);
}
public static string Base64Encode(string plainText)
{
   var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);
   return System.Convert.ToBase64String(plainTextBytes);
}
 
PREVIOUS NEXT
Tagged: #encrypt #decrypt #string
ADD COMMENT
Topic
Name
5+6 =