klyn.cryptography.PBKDF2.PBKDF2
constructor
public PBKDF2(hash as Object) throws CryptoException:
Description

Creates a PBKDF2 instance bound to the given digest algorithm.

Parameters
  • hash Digest algorithm instance.
Throws
  • CryptoException when the digest algorithm is unsupported. ```klyn import klyn.cryptography kdf = PBKDF2(SHA512()) print(kdf.hashAlgorithm) ```