Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

Argon2

function Argon2(const aPassword, aSalt, aSecret, aAD: tBytes; aParallelism, aMemoryKiB, aIterations, aTagLen: Integer; aType: tArgon2Type = a2dArgon2id): tBytes;
Full RFC 9106 Argon2 with all inputs. aPassword : secret to hash (P)
aSalt : salt (S), nominally >= 8 bytes (RFC recommends 16)
aSecret : optional secret key / pepper (K), may be nil
aAD : optional associated data (X), may be nil
aParallelism (p) : 1..(2^24-1) lanes
aMemoryKiB (m) : memory in KiB, must be >= 8*p
aIterations (t) : passes, >= 1
aTagLen : desired output length in bytes, >= 4
aType : Argon2d / Argon2i / Argon2id (default id)