Scram.pbkdf2: def of bend-kit-postgres@0.3.1.0 Import: import bend-kit-postgres@0.3.1.0/scram.bend as Scram Lines 167-171 of bend-kit-postgres@0.3.1.0/scram.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-postgres@0.3.1.0/scram.bend&start_line=167&end_line=171 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # SaltedPassword = Hi(pass, salt, iters) (RFC 5802 ยง2.2), which is PBKDF2 with HMAC-SHA-256. def pbkdf2(+pass: String, +salt: String, +iters: U32) -> IO(Result<&1, &1, U32 & String, String>): do IO>: r : Result<&1, &1, U32 & String, U32 & Array> <- pbkdf2.of(Bytes.from_string(pass), Bytes.from_string(salt), iters) return octets(r) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=from_string https://jend.leeeet.dev/definition.txt?path=bend-kit-postgres@0.3.1.0/scram.bend&name=octets https://jend.leeeet.dev/definition.txt?path=bend-kit-postgres@0.3.1.0/scram.bend&name=pbkdf2.of