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
secret | The secret input (e.g., password). |
salt | The salt (should be random and unique). |
length | The desired length of the derived key in bytes. |
params | Algorithm-specific parameters. |
Returns
The derived key bytes.