PBEKeySpec
class in package klyn.cryptography

    public class PBEKeySpec extends Object:

Object
└ PBEKeySpec

Password-based key derivation parameters.

    import klyn.cryptography

    spec = PBEKeySpec("password", "salty", 100000, 32)
    print(spec.iterations)

Fields

Modifier and Type | Member | Description
--- | --- | ---
public readonly | iterations `iterations as Int` | PBKDF2 iteration count.
public readonly | password `password as String` | Source password interpreted as UTF-8.
public readonly | salt `salt as String` | Salt text or encoded salt value.
public readonly | saltEncoding `saltEncoding as String` | Salt encoding: `utf8`, `hex`, `base64` or `base64url`.
public readonly | sizeBytes `sizeBytes as Int` | Requested output size in bytes.

Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | PBEKeySpec `PBEKeySpec(password as String, salt as String, iterations as Int = 100000, sizeBytes as Int = 32, saltEncoding as String = "utf8"):` | Creates a password-based derivation specification.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | toString `toString() as String:` | No summary.

Methods inherited from Object: fromJson, toDict, toJson, toString, toXml