Encoding
byte[] textAsBytes = System.Text.Encoding.UTF8.GetBytes(text);
var encodedText = Convert.ToBase64String(plainTextBytes);
Decoding
var textAsBytes = Convert.FromBase64String(text);
var decodedText = System.Text.Encoding.UTF8.GetString(textAsBytes);
0 comments:
Post a Comment