package
Version:
v1.18.15
Opens a new window with list of versions in this module.
Published: Dec 20, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Methods and types to support cryptographic operations.
func Hash(data interface{}) string
Hash computes hash of the given data using RawHash and returns result as hex decoded string.
func RawHash(data interface{}) []byte
RawHash computes SHA3-256 hash depending on data type and returns the hash bytes.
RawHash panics if data type is unknown.
Known types:
- []byte
- HashBytes
- string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.