Capy-Bearer Documentation

sha256

host call

Capy

function sha256(value : string) string

Description

sha256() returns 32 raw SHA-256 bytes. Use hex(sha256(value)) when you need lowercase hexadecimal text.

Return Values

Raw 32-byte SHA-256 digest.

Example

Capy

print(hex(sha256("abc")), "\n")