Class Pbkdf2Algorithm
- Namespace
- CapyKit
- Assembly
- CapyKit.dll
Implements the PBKDF2 algorithm for password encryption.
public class Pbkdf2Algorithm : IPasswordAlgorithm
- Inheritance
-
Pbkdf2Algorithm
- Implements
- Inherited Members
- Extension Methods
Constructors
Pbkdf2Algorithm()
Default constructor.
public Pbkdf2Algorithm()
Fields
ITERATIONS
The default number of iterations.
public const int ITERATIONS = 100000
Field Value
Remarks
This member is immutable.
LENGTH
(Immutable) The default length.
public const int LENGTH = 32
Field Value
Remarks
This member is immutable.
Properties
AlgorithmName
Gets the name of the algorithm.
public string AlgorithmName { get; }
Property Value
Methods
Encrypt(string, params object[])
Encrypts the given password using a PBKDF2 algorithm.
public byte[] Encrypt(string password, params object[] args)
Parameters
passwordstringThe plaintext password.
argsobject[]Additional arguments for the encryption process, specifically
saltlengthiterations
Returns
- byte[]
A byte array with the hashed
password.