Answers for "system.text.encoding.utf8.getbytes decode"

0

system.text.encoding.utf8.getbytes decode

public static string EncodeServerName(string serverName)
{
    return Convert.ToBase64String(Encoding.UTF8.GetBytes(serverName));
}

public static string DecodeServerName(string encodedServername)
{
    return Encoding.UTF8.GetString(Convert.FromBase64String(encodedServername));
}
Posted by: Guest on March-11-2020

Browse Popular Code Answers by Language