/ C#

[C#] Base64 Encode Decode snippet

public string Encode(string str)
{
return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(str));
}

public string Decode(string str)
{
return System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(str));
}
[C#] Base64 Encode Decode snippet
Share this

Subscribe to robsCode