SecretKeyFactory
classin packageklyn.cryptography
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))
Fields
| Modifier and Type |
Member |
Description |
| public readonly |
algorithm |
Canonical factory algorithm name. |
Methods
| Modifier and Type |
Member |
Description |
| public |
generateSecret |
Derives key material from a password-based specification. |
| public |
generateSecret |
No summary. |
| public static |
getInstance |
Compatibility factory for dynamic algorithm selection. |
| public override |
toString |
No summary. |