🔢 Non-cryptographic hash to verify data integrity. 6 Commits
2023-07-23 21:07:52 +02:00
.editorconfig Implemented basic hashing 2023-07-22 17:02:22 +02:00
.gitignore Implemented basic hashing 2023-07-22 17:02:22 +02:00
Benchmarks_test.go Added more tests 2023-07-23 11:40:22 +02:00
go.mod Implemented basic hashing 2023-07-22 17:02:22 +02:00
hash_test.go Added distribution test 2023-07-23 20:58:26 +02:00
hash.go Added more tests 2023-07-23 11:40:22 +02:00
LICENSE Implemented basic hashing 2023-07-22 17:02:22 +02:00
README.md Updated documentation 2023-07-23 21:07:52 +02:00

hash

This is a non-cryptographic hash (aka checksum) to verify data integrity.

API

sum := hash.Bytes(data)

You can use strconv.FormatUint(sum, 16) to get a string in hexadecimal format.