No description
Find a file
Eugene Kabanov 4e18f7bf30
Fix sha2 update() function crashes on uninitialized context. (#96)
* Fix sha2 update() function crashes on uninitialized context.
Add tests.

* Add test for finish() operation.
2025-12-30 12:57:44 +02:00
.github/workflows Fix GCM mode unable to work in streaming mode. (#94) 2025-12-27 14:44:25 +02:00
docs Fix hash in documentation 2019-11-02 20:37:01 -07:00
examples use "openArray" instead of "openarray" for stylecheck (#55) 2022-07-05 13:33:21 +03:00
nimcrypto Fix sha2 update() function crashes on uninitialized context. (#96) 2025-12-30 12:57:44 +02:00
tests Fix sha2 update() function crashes on uninitialized context. (#96) 2025-12-30 12:57:44 +02:00
.gitignore refactor test suite execution to reduce duplication 2019-01-18 16:17:02 +01:00
LICENSE Initial commit 2018-03-11 11:43:12 +02:00
nimcrypto.nim Add SHA1 digest and tests. 2019-03-02 17:43:44 +02:00
nimcrypto.nimble Bump to v0.7.3. 2025-12-27 15:15:58 +02:00
README.md Update README.md (#87) 2025-06-16 12:02:32 +03:00

nimcrypto

Github action

Nim cryptographic library

Nimcrypto is Nim's cryptographic library. It implements several popular cryptographic algorithms and their tests with some examples.

Most notably, this library has been used in the Nimbus Ethereum client. To see the implementation, check out its Github repository.

The most basic usage

nimble install nimcrypto # installation
# example.nim
import nimcrypto

echo keccak_256.digest("Alice makes a hash") 
# outputs F8AE86DA35CF3D9F0816BAA6015A6AFFD20BA5D6A533FEA94D89D6164264326F

See full documentation here.