def format
import bend-collections@1.0.0.0/src/crypto/argon2/phc.bend as Phcimport 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)])