/// <summary> /// Encrypts specified text using UTF-8 as its binary representation. /// </summary> public static string Encrypt(string text) { var input = Encoding.UTF8.GetBytes(text); var output = s_encryptor.Encrypt(input); return(Convert.ToBase64String(output)); }