def sha

bend-kit-postgres@0.3.0.0 · scram.bend:157

import bend-kit-postgres@0.3.0.0/scram.bend as Scram
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

157def sha(+data: String) -> IO(Result<&1, &1, U32 & String, String>):
158  do IO<Result<&1, &1, U32 & String, String>>:
159    r : Result<&1, &1, U32 & String, U32 & Array<U32>> <- sha.of(Bytes.from_string(data))
160    return octets(r)

Uses (11)

Used by (1)