PBKDF2
classin packageklyn.cryptography
public class PBKDF2 extends SecretKeyFactory:
PBKDF2 password-based key derivation parameterized by a concrete digest.
import klyn.cryptography
kdf = PBKDF2(SHA256())
spec = PBEKeySpec("password", "salty", 100000, 32)
print(kdf.generateSecret(spec))
Fields
| Modifier and Type |
Member |
Description |
| public readonly |
hashAlgorithm |
Canonical digest algorithm name used by this PBKDF2 instance. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
PBKDF2 |
Creates a PBKDF2 instance using `SHA256`. |
| public |
PBKDF2 |
Creates a PBKDF2 instance bound to the given digest algorithm. |
Methods