# crypton

> Low-level cryptography library for Haskell, the maintained fork of cryptonite

Source: https://talira.ai/catalog/crypton-z1vg0stx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / cryptography](https://talira.ai/categories/libraries/cryptography), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause AND MIT AND ISC[^1][^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (BSD-3-Clause, with MIT and ISC parts).
- Free tier: yes[^1]
- Backed by: [Kazu Yamamoto](https://talira.ai/orgs/kazu-yamamoto.md)
- Forked from [cryptonite](https://talira.ai/catalog/cryptonite-ggy8kkqe.md). A fork of cryptonite made with the original author's permission

crypton is a Haskell library of low-level cryptographic primitives (AES and AES-GCM, ChaCha20-Poly1305, hashes, RSA, ECDSA and ECDH on P-256, X25519, Ed25519 and more), with C and assembly underneath for speed. AES and GHASH use the processor's instructions on x86-64, AArch64, 32-bit ARM and ppc64le and fall back to a constant-time, table-free implementation from BearSSL elsewhere; RSA private-key operations offer blinding to resist timing attacks, and check their results against fault attacks. It's a fork of cryptonite, made with the original author's permission. Install it from Hackage as crypton.

## Links

- GitHub: https://github.com/kazu-yamamoto/crypton
- Docs: https://hackage.haskell.org/package/crypton

## Problems it solves

- encrypt and sign data in a Haskell program with fast, constant-time primitives
- replace the archived cryptonite package in my Haskell project
- the low-level crypto a Haskell TLS implementation needs

## Features

- AES and AES-GCM with hardware instructions on x86-64, ARM and ppc64le
- constant-time portable AES and GHASH
- ChaCha20-Poly1305
- RSA with blinding against timing attacks
- ECDSA, ECDH on P-256, X25519 and Ed25519
- C and assembly backends

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 1.00, adoption 0.34, momentum 0.05, community 0.76, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 859 commits in the last 90 days
- 52 GitHub stars
- 80 contributors
- backed by Kazu Yamamoto

## Alternatives

- [cryptohash-sha256](https://talira.ai/catalog/cryptohash-sha256-t8mtg448.md): Fast, pure and practical SHA-256 for Haskell

## Sources

[^1]: https://github.com/kazu-yamamoto/crypton/blob/main/crypton.cabal (checked 28 Nov 2026)
[^2]: https://github.com/kazu-yamamoto/crypton/blob/main/LICENSE (checked 28 Nov 2026)
