package
module
Version:
v0.3.6
Opens a new window with list of versions in this module.
Published: Jun 2, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
README
¶
hash
![Sponsor](https://img.shields.io/badge/github-donate-green.svg)
Ultra-fast hashing of bytes, strings and reader contents. The algorithm is meant to be used for cache (in)validation.
Benchmarks
![Hash performance benchmarks](https://github.com/akyoto/hash/raw/v0.3.6/docs/hash-performance.png)
Usage
[]byte
x := hash.Bytes([]byte("Hello World"))
string
x := hash.String("Hello World")
io.Reader
x := hash.Reader(file)
Style
Please take a look at the style guidelines if you'd like to make a pull request.
Want to see your own name here?
Documentation
¶
Bytes hashes the given byte slice.
Reader hashes all the bytes in the given reader.
String hashes the given string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.