PbeKdf2(Int32, Byte, Byte, Int32, HashAlgorithm) Method |
Derives a key of any length from a password using the PBKDF2 algorithm using specified HMAC algorithm
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic static byte[] Kdf2(
int dkLen,
byte[] pwdBytes,
byte[] salt,
int count,
HashAlgorithm hashAlg = HashAlgorithm.Sha1
)
Public Shared Function Kdf2 (
dkLen As Integer,
pwdBytes As Byte(),
salt As Byte(),
count As Integer,
Optional hashAlg As HashAlgorithm = HashAlgorithm.Sha1
) As Byte()
Parameters
- dkLen Int32
- Required length of key in bytes
- pwdBytes Byte
- Password encoded in byte format
- salt Byte
- Salt in byte format
- count Int32
- Iteration count
- hashAlg HashAlgorithm (Optional)
- Hash algorithm to use in HMAC PRF (optional, default=SHA-1)
Return Value
ByteKey in byte[] format
See Also