public generateSecret(spec as PBEKeySpec) as String throws CryptoException:
Derives key material from a password-based specification.
| Parameter | Description |
|---|---|
spec | Password-based derivation specification. |
outputEncoding | Output encoding: hex, base64 or base64url. |
Encoded derived key material.
import klyn.cryptography
factory = PBKDF2(SHA256())
spec = PBEKeySpec("password", "salty", 100000, 32)
print(factory.generateSecret(spec))