Nim cryptographic library
Go to file
Jacek Sieka 8fa5b48167
double keccak speed
https://github.com/nim-lang/Nim/issues/23688 causes the implementation
to fall into the `when nimvm` versions of THETA1, CHI etc - these
operate on openArray and get interspersed with range checks and other
random inefficiencies.

This fix doubles the speed of the 256-bit keccak.
2024-06-06 22:38:17 +02:00
.github/workflows test refc under Nim 2.0 and later (#77) 2024-04-11 16:03:33 +03: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 double keccak speed 2024-06-06 22:38:17 +02:00
tests Add GCM[T] "traditional" API calls encrypt/decrypt. (#73) 2023-10-05 14:45:43 +03: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
README.md Use Github Actions instead of Travis & Appveyor. (#52) 2021-06-19 02:28:08 +03:00
nimcrypto.nim Add SHA1 digest and tests. 2019-03-02 17:43:44 +02:00
nimcrypto.nimble test refc under Nim 2.0 and later (#77) 2024-04-11 16:03:33 +03:00

README.md

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.