Orc.NuGetExplorer.Native.CredUi.EncryptPassword C# (CSharp) Method

EncryptPassword() public static method

public static EncryptPassword ( string password ) : byte[]
password string
return byte[]
        public static byte[] EncryptPassword(string password)
        {
            var unprotectedBytes = Encoding.UTF8.GetBytes(password);
            var protectedBytes = System.Security.Cryptography.ProtectedData.Protect(unprotectedBytes, null, System.Security.Cryptography.DataProtectionScope.CurrentUser);
            return protectedBytes;
        }