PBEKeySpec
classin packageklyn.cryptography
public class PBEKeySpec extends Object:
Password-based key derivation parameters inspired by Java `PBEKeySpec`.
import klyn.cryptography
spec = PBEKeySpec("password", "salty", 100000, 32)
print(spec.iterations)
Fields
| Modifier and Type |
Member |
Description |
| public readonly |
iterations |
PBKDF2 iteration count. |
| public readonly |
password |
Source password interpreted as UTF-8. |
| public readonly |
salt |
Salt text or encoded salt value. |
| public readonly |
saltEncoding |
Salt encoding: `utf8`, `hex`, `base64` or `base64url`. |
| public readonly |
sizeBytes |
Requested output size in bytes. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
PBEKeySpec |
Creates a password-based derivation specification. |
Methods
| Modifier and Type |
Member |
Description |
| public override |
toString |
No summary. |