System.Security.Cryptography.DataProtectorExtensions.ProtectString C# (CSharp) Method

ProtectString() public static method

public static ProtectString ( this self, string input ) : byte[]
self this
input string
return byte[]
        public static byte[] ProtectString(this DataProtector self, string input)
        {
            return self.Protect(
                    Encoding.UTF8.GetBytes(input));
        }
DataProtectorExtensions