public abstract class SecretKeyFactory extends Object:
Abstract base class for secret-key derivation algorithms.
The primary password-based derivation API is exposed through PBKDF2.
import klyn.cryptography
factory as SecretKeyFactory = PBKDF2(SHA256())
spec = PBEKeySpec("password", "salty", 100000, 32)
print(factory.generateSecret(spec))| Modifier and Type | Member | Description |
|---|---|---|
| public readonly | algorithmalgorithm as String |
Canonical factory algorithm name. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | generateSecretgenerateSecret(spec as PBEKeySpec) as String throws CryptoException: |
Derives key material from a password-based specification. |
| public | generateSecretgenerateSecret(spec as PBEKeySpec, outputEncoding as String) as String throws CryptoException: |
Performs a cryptographic operation. |
| public static | getInstancegetInstance(algorithm as String) as SecretKeyFactory throws CryptoException: |
Compatibility factory for dynamic algorithm selection. |
| public override | toStringtoString() as String: |
No summary. |