string encodedStr = Convert.ToBase64String(Encoding.UTF8.GetBytes("inputStr"));
string inputStr = Encoding.UTF8.GetString(Convert.FromBase64String(encodedStr));