def format

bend-collections-laws-crypto@1.0.0.0 · src/crypto/argon2/phc.bend:317

import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/phc.bend as Phc
import Base

317def format(x: Phc) -> String:
318  match x:
319    case Phc{m, t, p, salt, hash}:
320      String.concat(["$argon2id$v=19$m=", decimal(m), ",t=", decimal(t), ",p=", decimal(p), "$", b64(salt), "$", b64(hash)])

Uses (6)

Used by (5)