argon2
fn
ubyte[] argon2(Argon2Type type, int version_, uint t, uint m, uint p,
const(ubyte)[] pwd, const(ubyte)[] salt,
const(ubyte)[] secret, const(ubyte)[] ad, uint tagLength)Argon2 Core Function.
Parameters
type | The Argon2 variant (Argon2d, Argon2i, Argon2id). |
version_ | The Argon2 version (0x13 recommended). |
t | Number of passes (iterations). |
m | Memory size in KiB. |
p | Degree of parallelism (lanes). |
pwd | Password input. |
salt | Salt input. |
secret | Optional secret key (K). |
ad | Optional associated data (X). |
tagLength | Desired length of the output tag (T). |
Returns
The hash tag.