std.crypto
Generated by
sema docfromcrates/sema-runtime/assets/stdlib/sema/crypto.sema. Import withfrom std.crypto import …. For a narrative introduction see std.crypto.
crypto
Section titled “crypto”Bounded native SHA-256 helpers.
def sha256_text
Section titled “def sha256_text”def sha256_text(text: str) -> str !{}Parameters
| name | type |
|---|---|
text |
str |
Returns str
Effects !{}
def sha256_bytes
Section titled “def sha256_bytes”def sha256_bytes(data: list[int]) -> str !{}Parameters
| name | type |
|---|---|
data |
list[int] |
Returns str
Effects !{}
def sha256_json
Section titled “def sha256_json”def sha256_json(value: Any) -> str !{}Parameters
| name | type |
|---|---|
value |
Any |
Returns str
Effects !{}
def file_sha256
Section titled “def file_sha256”def file_sha256(pathname: str) -> str !{fs.read}Parameters
| name | type |
|---|---|
pathname |
str |
Returns str
Effects !{fs.read}