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:
| Name | Type | Required | Description |
|---|---|---|---|
input | Bytes | ✓ |
Returns: String
md5(input: String)
Example:
crypto.md5("")
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
input | String | ✓ |
Returns: Bytes
sha1(input: String)
Example:
crypto.sha1("")
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
input | String | ✓ |
Returns: Bytes
sha256(input: String)
Example:
crypto.sha256("")
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
input | String | ✓ |
Returns: Bytes
sha512(input: String)
Example:
crypto.sha512("")
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
input | String | ✓ |
Returns: Bytes