BlipFace.Helpers.ProtectionHelper.Encrypt C# (CSharp) Method

Encrypt() public static method

Pozwal zaszyfrować łańcuch znaków
public static Encrypt ( this input ) : string
input this
return string
        public static string Encrypt(this SecureString input)
        {
            byte[] encryptedData = System.Security.Cryptography.ProtectedData.Protect(
                Encoding.Unicode.GetBytes(ToInsecureString(input)),
                entropy,
                System.Security.Cryptography.DataProtectionScope.CurrentUser);
            return Convert.ToBase64String(encryptedData);
        }