public static getInstance(algorithm as String) as SecretKeyFactory throws CryptoException:
Compatibility factory for dynamic algorithm selection.
The preferred API is PBKDF2(SHA256()).
| Parameter | Description |
|---|---|
algorithm | Derivation algorithm. |
Ready-to-use secret-key factory.
import klyn.cryptography
factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA256")
print(factory.algorithm)