Skip to content

std.crypto

Generated by sema doc from crates/sema-runtime/assets/stdlib/sema/crypto.sema. Import with from std.crypto import …. For a narrative introduction see std.crypto.

Bounded native SHA-256 helpers.

def sha256_text(text: str) -> str !{}

Parameters

name type
text str

Returns str

Effects !{}

def sha256_bytes(data: list[int]) -> str !{}

Parameters

name type
data list[int]

Returns str

Effects !{}

def sha256_json(value: Any) -> str !{}

Parameters

name type
value Any

Returns str

Effects !{}

def file_sha256(pathname: str) -> str !{fs.read}

Parameters

name type
pathname str

Returns str

Effects !{fs.read}