Discover Packages
github.com/indra-labs/indra
pkg
crypto
sha256
package
Version:
v0.1.9
Opens a new window with list of versions in this module.
Published: Jan 17, 2023
License: Unlicense
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package sha256 provides a simple interface for single and double SHA256
hashes, used with secp256k1 signatures, message digest checksums, cloaked
public key "addresses" and so on.
Zero copies a cleanly initialised empty slice over top of the provided Hash.
Hash is just a 256-bit hash.
Double runs a standard double SHA256 hash and does all the slicing for you.
New creates a correctly sized slice for a Hash.
Single runs a standard SHA256 hash and does all the slicing for you.
Zero out the values in the hash. Hashes can be used as secrets.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.