System.Security.Cryptography.Rfc2898DeriveBytes.Rfc2898DeriveBytes C# (CSharp) Method

Rfc2898DeriveBytes() private method

private Rfc2898DeriveBytes ( string password, int saltSize, int iterations ) : System.Diagnostics
password string
saltSize int
iterations int
return System.Diagnostics
        public Rfc2898DeriveBytes(string password, int saltSize, int iterations)
        {
            if (saltSize < 0)
                throw new ArgumentOutOfRangeException(nameof(saltSize), SR.ArgumentOutOfRange_NeedNonNegNum);
            if (saltSize < MinimumSaltSize)
                throw new ArgumentException(SR.Cryptography_PasswordDerivedBytes_FewBytesSalt, nameof(saltSize));
            if (iterations <= 0)
                throw new ArgumentOutOfRangeException(nameof(iterations), SR.ArgumentOutOfRange_NeedPosNum);

            _salt = Helpers.GenerateRandom(saltSize);
            _iterations = (uint)iterations;
            _password = Encoding.UTF8.GetBytes(password);
            _hmacSha1 = new HMACSHA1(_password);

            Initialize();
        }

Same methods

Rfc2898DeriveBytes::Rfc2898DeriveBytes ( byte password, byte salt, int iterations ) : System.Diagnostics
Rfc2898DeriveBytes::Rfc2898DeriveBytes ( string password, byte salt ) : System.Diagnostics
Rfc2898DeriveBytes::Rfc2898DeriveBytes ( string password, byte salt, int iterations ) : System.Diagnostics
Rfc2898DeriveBytes::Rfc2898DeriveBytes ( string password, int saltSize ) : System.Diagnostics