Skip to content

Repository files navigation

CryptoBase

Package NuGet
CryptoBase NuGet.org
CryptoBase.Abstractions NuGet.org
CryptoBase.IO NuGet.org
CryptoBase.X509 NuGet.org
CryptoBase.SpeedTest NuGet.org

High-performance, modern cryptography in pure C#

See the documentation for installation and usage guides.

To measure the speed of the algorithms on your machine, run the speed test: dnx CryptoBase.SpeedTest.

Status

Icon Description
⚠️ Pending
⏳ Underway
✅ Done
Formats Status
Base32 ✅

Cryptographic hash algorithms

Algorithms Status
BLAKE2b ✅
BLAKE3 ✅
MD5 ✅
SHA-1 ✅
SHA-224 ✅
SHA-256 ✅
SHA-384 ✅
SHA-512 ✅
SHA3-224 ✅
SHA3-256 ✅
SHA3-384 ✅
SHA3-512 ✅
SHAKE128 ✅
SHAKE256 ✅
cSHAKE128 ✅
cSHAKE256 ✅
SM3 ✅

Non-cryptographic checksums

Algorithms Status
CRC-32 ✅
CRC-32C ✅
Algorithms Status
HMAC ✅
Poly1305 ✅
KMAC128 ✅
KMAC256 ✅
KMACXOF128 ✅
KMACXOF256 ✅
Algorithms Status
Argon2d ✅
Argon2i ✅
Argon2id ✅
HKDF ✅
SM3 KDF ✅
TLS 1.2 PRF ✅
Algorithms Status
HOTP ✅
TOTP ✅
Steam Guard ✅

Symmetric-key algorithms

Algorithms Status
ChaCha20 (IETF) ✅
ChaCha20 (Original) ✅
Salsa20 ✅
XChaCha20 ✅
XSalsa20 ✅
Algorithms Status
AES ✅
SM4 ✅
Block cipher modes
Algorithms Status
CTR128 ✅
XTS ✅
Padding
Modes Status
Zeros ✅
PKCS #7 ✅
ANSI X9.23 ✅
ISO 10126 ✅
Algorithms Status
AES-CCM ✅
AES-GCM ✅
ChaCha20-Poly1305 ✅
Cobblestone-128 ✅
Cobblestone-256 ✅
SM4-CCM ✅
SM4-GCM ✅
XChaCha20-Poly1305 ✅

Asymmetric cryptography

Algorithms Status
ECDH ✅
ECDSA ✅
RSA ✅
X25519 ✅
X448 ✅
Ed25519 ✅
Ed448 ✅
SM2 ✅
SM9 ✅
Features Status
Base, PSK, auth and auth_psk modes ✅
HKDF-SHA256, HKDF-SHA384, HKDF-SHA512 ✅
AES-128-GCM, AES-256-GCM, ChaCha20Poly1305, export-only ✅
DHKEM(P-256, HKDF-SHA256) ✅
DHKEM(P-384, HKDF-SHA384) ✅
DHKEM(P-521, HKDF-SHA512) ✅
DHKEM(X25519, HKDF-SHA256) ✅
DHKEM(X448, HKDF-SHA512) ✅
ML-KEM-512 ⚠️
ML-KEM-768 ⚠️
ML-KEM-1024 ⚠️

Post-quantum cryptography

Algorithms Status
ML-KEM ✅
HQC ⚠️
Algorithms Status
SecP256r1MLKEM768 ✅
SecP384r1MLKEM1024 ✅
X25519MLKEM768 ✅
Algorithms Status
ML-DSA ✅
SLH-DSA ⚠️
FN-DSA ⚠️
Composite ML-DSA ⚠️
Features Status
Certificate decoding ✅
Self-signed certificates ✅
Host name matching (RFC 9525) ✅
Chain validation through the platform ✅
Path validation (RFC 5280) ✅
Certificate fingerprints (RFC 8122) ✅
Certificate signing requests ✅
Certificate issuance ✅
CRL ✅
OCSP ✅
Features Status
Stream hashing ✅
Stream MACs ✅
XTS random access and streams ✅
Cobblestone encryption and decryption streams ✅
Cobblestone random access ✅

Releases

Packages

Used by

Contributors

Languages