Skip to content
/ hash Public

Easy generic API for cryptographic hash functions in Go.

License

Notifications You must be signed in to change notification settings

bytemare/hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptographic Hash Functions

hash Go Reference codecov OpenSSF Best Practices OpenSSF Scorecard

  import "github.com/bytemare/hash"

This package exposes a simple API to seamlessly use a variety of cryptographic functions. It aims at minimum code adaptation in your code, and easy parameterization. It completely relies on built-ins.

It attempts to offer a single API for fixed and extensible-output functions, Merkle–Damgård construction (e.g. SHA-1, SHA-2), sponge functions (e.g. SHA-3, SHAKE), and HAIFA structures (e.g. Blake2).

  • Implements the hash.Hash interface
  • HMAC and HKDF for fixed output size hash functions
  • useful metadata like block size, security, and output size when relevant.

Documentation Go Reference

You can find the documentation and usage examples in the package doc and the project wiki .

Versioning

SemVer is used for versioning. For the versions available, see the tags on the repository.

Contributing

Please read CONTRIBUTING.md for details on the code of conduct, and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.