blake2

blake2 - cryptographic hash function

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License CC0
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install blake2
choosenim install blake2
git clone https://github.com/nim-community/blake2

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
blake2 - - - - - - -

Source

Repository https://github.com/nim-community/blake2
Homepage https://github.com/nim-community/blake2
Documentation View Documentation
Registry Source nimble_official

README

Blake2 Test

BLAKE2b cryptographic hash function for Nim.

import blake2

# Simple hashing
echo getBlake2b("data", 32)

# With key
var b: Blake2b
blake2b_init(b, 4, "key", 3)
blake2b_update(b, "data", 4)
assert($blake2b_final(b) == getBlake2b("data", 4, "key"))

Run tests: nimble test

License: CC0 1.0 Universal (see LICENSE file)