| Crates.io | sqep-lite |
| lib.rs | sqep-lite |
| version | 0.4.2 |
| created_at | 2025-11-20 22:22:33.277163+00 |
| updated_at | 2025-11-21 16:43:26.910841+00 |
| description | SQEP Lite — ZeroshieldCipher: a modern AEAD+HKDF cryptography primitive. |
| homepage | |
| repository | https://github.com/ElevitaX/sqep-lite |
| max_upload_size | |
| id | 1942683 |
| size | 87,142 |
SQEP Lite is a modern symmetric-encryption primitive built on:
This crate provides the public, MIT-licensed, fully-auditable core of the SQEP ecosystem.
Author: Herbert Manfred Fulgence Vaty
Organization: ElevitaX
License: MIT
Repository: https://github.com/ElevitaX/sqep-lite
SQEP Lite is designed with these goals:
Uses proven NIST-grade primitives:
ChaCha20-Poly1305 for authenticated encryptionHKDF-SHA256 for key derivation & domain separationA self‑inverse keyed XOR layer adds structure, strengthens error detection, and provides consistent framing.
Only standard Rust + ring + sha2 + rand_chacha.
Zero allocations outside ciphertext buffers.
All code required for Lite security is visible in src/lite.rs.
plaintext
│
▼
HKDF-bound XOR mask (ChaCha20Rng stream)
│
▼
ChaCha20-Poly1305 AEAD
│
▼
HEADER || NONCE || AEAD_CIPHERTEXT
│
▼
SealMeta { timestamp, sha256(payload) }
✔ Confidentiality
✔ Integrity (AEAD tag)
✔ Replay-safe framing (nonce + magic header)
✔ Tamper detection (metadata hash)
use sqep_lite::prelude::*;
fn main() {
let cipher = ZeroshieldCipher::new();
let (encrypted, meta) = cipher.encrypt_with_meta(b"hello SQEP!");
println!("Encrypted bytes: {:?}", encrypted);
println!("Metadata: {:?}", meta);
let decrypted = cipher.decrypt(&encrypted).unwrap();
assert_eq!(&decrypted, b"hello SQEP!");
}
use sqep_lite::ZeroshieldCipher;
fn main() -> std::io::Result<()> {
let cipher = ZeroshieldCipher::new();
let meta = cipher.encrypt_file("secret.txt", "secret.sqep")?;
println!("Encrypted at: {}, hash={}", meta.timestamp, meta.hash);
cipher.decrypt_file("secret.sqep", "recovered.txt")?;
Ok(())
}
Every encryption returns:
pub struct SealMeta {
pub timestamp: u64,
pub hash: String,
}
timestamp = seconds since UNIX epochhash = SHA-256 of the full ciphertext frameUses HKDF-SHA256 with domain separation:
salt = nonce
ikm = 32-byte symmetric key
info = "SQEP:LITE:QT:v1"
Produces a 32-byte seed → ChaCha20Rng → deterministic keystream.
Official AEAD encryption via ring.
[ HEADER (SQEP4.0-LITE) | 12-byte Nonce | Ciphertext+Tag ]
No external config. No unsafe. No system calls.
Older helper names are provided but deprecated:
quantum_transform()
inverse_quantum_transform()
Both are identity transforms now.
liteZeroshieldCipher)plus (NOT included in public crate)This crate excludes all SQEP Plus files via Cargo.toml.
To preserve security and avoid misuse:
❌ Not a PQ-safe KEM (stub only)
❌ Not a full hybrid key exchange
❌ Not a TLS replacement
❌ Not a zero-knowledge system
❌ Not a blockchain proof primitive
For those features, SQEP Plus / SQEP Zero are separate products.
The entire Lite cryptography surface is:
src/
└─ lite.rs
Recommended tools:
MIT License
Copyright (c) 2025
Herbert Manfred Fulgence Vaty — ElevitaX
Contact: elevitax@gmail.com Enterprise licensing & early access available.