klyn.cryptography.PBKDF2.PBKDF2
constructor

    public PBKDF2(hash as Object) throws CryptoException:

Description

Creates a PBKDF2 instance bound to the given digest algorithm.

Parameters

Parameter | Description
--- | ---
`hash` | Digest algorithm instance.

Throws

- CryptoException when the digest algorithm is unsupported.

Example

    import klyn.cryptography

    kdf = PBKDF2(SHA512())
    print(kdf.hashAlgorithm)