argon2

fnubyte[] 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

typeThe Argon2 variant (Argon2d, Argon2i, Argon2id).
version_The Argon2 version (0x13 recommended).
tNumber of passes (iterations).
mMemory size in KiB.
pDegree of parallelism (lanes).
pwdPassword input.
saltSalt input.
secretOptional secret key (K).
adOptional associated data (X).
tagLengthDesired length of the output tag (T).

Returns

The hash tag.