Skip to main content

crypto

Package crypto provides cryptographic hashing and encoding for durable programs.

crypto

Package crypto exports crypto

Functions

hex(input: Bytes)

Example:

crypto.hex(b"")

Parameters:

NameTypeRequiredDescription
inputBytes

Returns: String


md5(input: String)

Example:

crypto.md5("")

Parameters:

NameTypeRequiredDescription
inputString

Returns: Bytes


sha1(input: String)

Example:

crypto.sha1("")

Parameters:

NameTypeRequiredDescription
inputString

Returns: Bytes


sha256(input: String)

Example:

crypto.sha256("")

Parameters:

NameTypeRequiredDescription
inputString

Returns: Bytes


sha512(input: String)

Example:

crypto.sha512("")

Parameters:

NameTypeRequiredDescription
inputString

Returns: Bytes