zks_crypt

Crates.iozks_crypt
lib.rszks_crypt
version0.1.0
created_at2026-01-06 19:00:08.855955+00
updated_at2026-01-06 19:00:08.855955+00
descriptionCryptographic primitives for ZKS Protocol - post-quantum secure encryption
homepagehttps://zks-protocol.org
repositoryhttps://github.com/zks-protocol/zks
max_upload_size
id2026505
size193,877
Wasif Faisal (cswasif)

documentation

https://docs.rs/zks_crypt

README

zks_crypt

Cryptographic primitives for the ZKS Protocol - post-quantum secure encryption.

Overview

This crate provides the core cryptographic operations for ZKS Protocol:

  • Wasif-Vernam Cipher - ChaCha20-Poly1305 with XOR layer
  • TRUE Random Entropy - drand beacon integration
  • Recursive Chain - Key derivation with forward secrecy
  • Scrambling Mode - Traffic analysis resistance

Features

  • Post-quantum resistant symmetric encryption
  • TRUE random entropy from drand network
  • Memory-safe with automatic zeroization
  • No unsafe code

Usage

use zks_crypt::wasif_vernam::WasifVernam;

let key = [0u8; 32]; // Use proper random key in production
let mut cipher = WasifVernam::new(&key)?;

let encrypted = cipher.encrypt(b"Hello, World!")?;
let decrypted = cipher.decrypt(&encrypted)?;

License

AGPL-3.0-only

Commit count: 31

cargo fmt