BlipFace.Helpers.ProtectionHelper.Encrypt C# (CSharp) 메소드

Encrypt() 공개 정적인 메소드

Pozwal zaszyfrować łańcuch znaków
public static Encrypt ( this input ) : string
input this
리턴 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);
        }