PBKDF2.derive

ubyte[] derive(const(ubyte)[] secret, const(ubyte)[] salt, size_t length)
No documentation available for this declaration.
ubyte[] derive(const(ubyte)[] secret, const(ubyte)[] salt, size_t length, KDFParams params)

Derives a key using the given parameters.

If params.iterations is greater than 1, it overrides the constructor's iteration count. Otherwise the constructor's value is used.

Parameters

secretThe secret input (e.g., password).
saltThe salt (should be random and unique).
lengthThe desired length of the derived key in bytes.
paramsAlgorithm-specific parameters.

Returns

The derived key bytes.