voided-core
Core cryptographic primitives for the Voided encryption library.
Features
- AES-256-GCM - Authenticated encryption
- ChaCha20-Poly1305 - Alternative AEAD cipher
- Ed25519 - Digital signatures
- ECDSA (P-256) - Elliptic curve signatures
- RSA - RSA encryption/signing
- SHA-256/512, BLAKE2 - Hashing
- Brotli/Gzip - Compression
- HKDF, PBKDF2 - Key derivation
Installation
[]
= "0.1"
Usage
use ;
use ;
// Encrypt data
let key = random_bytes;
let plaintext = b"Hello, World!";
let result = encrypt.unwrap;
// Decrypt data
let decrypted = decrypt.unwrap;
// Hash data
let hash = hash_hex;
Feature Flags
backend(default) - Full feature set for server usebrowser- Browser-compatible subset for WASMcompression- Brotli/Gzip compressionsigning- Digital signature support (Ed25519, ECDSA, RSA)
License
MIT