O(1)-RAM Streaming Tokenizer
Scrubs names, National IDs, IBANs, and IPs line-by-line into TOK_<16-hex> without loading whole batches into RAM.
Scrub customer identities inside your bank perimeter, seal records into standardized 64 KiB encrypted buckets, and enforce offline 2-of-3 officer approval before anything can be read again. Even a compromised cloud host sees zero PII, zero sizes, and zero keys.
Flip between the untrusted remote storage server and the bank's 2-of-3 quorum console. Notice how missing cloud nodes recover automatically, and how 1 officer alone stays locked out.
00000000: 42 56 4c 33 a8 19 c4 02 77 f1 09 e3 00 00 00 00 |BVL3....w.......|
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020: ff e4 91 c2 4b 88 10 3d e9 2a 74 c5 60 1b 55 f9 |....K..=.*t.`.U.|
00000030: 8c 37 a0 1d 94 6f 28 e1 07 c3 b5 42 9a 61 d8 12 |.7...o(....B.a..|
00000040: 53 7e 04 b1 c9 82 6d 30 f4 15 9b a6 42 0e 77 83 |S~....m0....B.w.|
...
0000fff0: 7a 0c f3 91 b2 48 6e 19 88 d4 a1 55 03 e7 29 c0 |z....Hn....U..).|
[65,536 bytes opaque AES-256-GCM frame + CSPRNG noise padding]
| Tx ID | Customer | National ID | IP Status | Amount EGP | Merchant |
|---|---|---|---|---|---|
| TXN100042 | Ahmed Hassan | 30108110101000 | REDACTED_IP | 14,250.00 | Carrefour-Maadi |
| TXN100043 | Mona El-Sayed | 29901010102222 | REDACTED_IP | 3,840.00 | InstaPay-P2P |
| TXN100044 | Youssef Mahmoud | 29504120103318 | REDACTED_IP | 27,900.00 | Amazon-EG |
| TXN100045 | Nourhan Tarek | 30206190104491 | REDACTED_IP | 1,490.00 | Fawry-BillPay |
| TXN100046 | Salma Ibrahim | 29811230105574 | REDACTED_IP | 8,620.00 | WE-Telecom |
Every security boundary works independently—so even if one layer is stressed or offline, customer identities and keys remain mathematically out of reach.
Scrubs names, National IDs, IBANs, and IPs line-by-line into TOK_<16-hex> without loading whole batches into RAM.
Fixed 65,536-byte AES-256-GCM frames with per-chunk nonces and CSPRNG noise padding prevent file-size traffic inference.
Gateway stores only officer *.pub keys; unmasking requires 2 offline signatures bound to a single-use nonce and UTC expiry.
Non-extractable Master KEK (CKA_EXTRACTABLE=FALSE) wraps per-batch DEKs with crash-safe KEK rotation and RAM zeroization.
Splits ciphertext across local disk or 3 S3/MinIO buckets (AWS SigV4) with automatic SHARD_RECOVERY if a cloud node fails.
Strict SHA-256 certificate fingerprint allowlisting plus a 3-tab desktop operations console (BlindVault_GUI).
Pair sending and receiving BlindVault nodes behind home or office firewalls using an 8-character invite code. blindvault-control discovers your external address, introduces peers via ephemeral Redis state, and relays locked TLS 1.3 streams if direct TCP is blocked—without ever logging files, histories, or keys.
Benchmarked via Google Benchmark (bench_vault) on 8 cores @ 2,419 MHz. Zero-copy field parsing and hardware AES keep compliance virtually invisible.
| Benchmark | Real Time | CPU Time | Iterations | Throughput | Item Rate |
|---|---|---|---|---|---|
| BM_TokenizeCsvBatch/1000 | 0.315 ms | 0.298 ms | 2,352 | 408.32 MiB/s | 3.36 M/s |
| BM_TokenizeCsvBatch/10000 | 2.147 ms | 2.041 ms | 336 | 595.96 MiB/s | 4.90 M/s |
| BM_TokenizeCsvBatch/50000 | 11.339 ms | 10.740 ms | 65 | 566.15 MiB/s | 4.66 M/s |
| BM_EncryptEnvelope64KiB/65536 | 44.99 µs | 42.59 µs | 16,962 | 1.43 GiB/s | — |
| BM_EncryptEnvelope64KiB/524288 | 170.99 µs | 161.88 µs | 4,547 | 3.02 GiB/s | — |
| BM_EncryptEnvelope64KiB/2097152 | 1,119.74 µs | 1,060.09 µs | 625 | 1.84 GiB/s | — |
| BM_ErasureSplit2of3/262144 | 134.02 µs | 126.88 µs | 5,495 | 1.92 GiB/s | — |
| BM_ErasureSplit2of3/1048576 | 626.71 µs | 593.32 µs | 1,085 | 1.65 GiB/s | — |
| BM_ErasureSplit2of3/4194304 | 3,425.65 µs | 3,243.23 µs | 208 | 1.20 GiB/s | — |
| BM_EndToEndOffloadPipeline/1000 | 2.667 ms | 2.517 ms | 288 | 48.35 MiB/s | 397.37 k/s |
| BM_EndToEndOffloadPipeline/10000 | 18.817 ms | 17.818 ms | 44 | 68.25 MiB/s | 561.22 k/s |
Unedited captures from live scripts/e2e_test.sh mutual TLS 1.3 CLI checks and GoogleTest cryptographic, RFC 4180 parser, quorum, and recovery suites (not microbenchmarks).
Choose your workflow below—from core mTLS transfers and offline compliance quorum ceremonies to HSM hardware keys and the Qt 6 desktop app.
# 1. Build BlindVault CLI & test suite (Ubuntu 24.04 / WSL2)
git clone https://github.com/OmarAhmedTHE25th/BlindVault.git
cd BlindVault
cmake -S . -B build -G Ninja
cmake --build build
# 2. Initialize EC P-256 identities & pin peer fingerprints
./build/BlindVault init gateway_node
./build/BlindVault fingerprint
./build/BlindVault trust add <PEER_SHA256_FINGERPRINT> cloud_vault
# 3. Transfer over mutual TLS 1.3 (direct or via blindvault-control)
./build/BlindVault receive 8080 ./cloud_received
./build/BlindVault send 127.0.0.1 8080 ./payload.enc
# 1. Generate offline Ed25519 keypairs for 2-of-3 Compliance Officers
./build/BlindVault officer-keygen CBE-Officer-1 ./offline_officers
./build/BlindVault officer-keygen CBE-Officer-2 ./offline_officers
cp ./offline_officers/*.pub ./bank_state/officers/
# 2. Stream CSV through Tokenizer + 64 KiB BVL3 AEAD + 2-of-3 Shards
./build/BlindVault vault offload batch.csv --state-dir ./bank_state --cloud-dir ./cloud_bucket
# 3. Issue a replay-proof challenge (16B nonce + 5m expiry), sign offline, and query
./build/BlindVault vault challenge "Ahmed Hassan" --state-dir ./bank_state
SIG1=$(./build/BlindVault officer-sign ./offline_officers/CBE-Officer-1.priv CBE-Officer-1 <TOKEN> <BLOB> <WDEK> <NONCE> <EXPIRES>)
SIG2=$(./build/BlindVault officer-sign ./offline_officers/CBE-Officer-2.priv CBE-Officer-2 <TOKEN> <BLOB> <WDEK> <NONCE> <EXPIRES>)
./build/BlindVault vault query "Ahmed Hassan" ./cloud_bucket --nonce <NONCE> --expires <EXPIRES> \
--approval "CBE-Officer-1:$SIG1" --approval "CBE-Officer-2:$SIG2" --state-dir ./bank_state
# Attach a PKCS#11 Hardware Security Module or SoftHSMv2 token (non-extractable KEK)
export BLINDVAULT_PKCS11_MODULE=/usr/lib/softhsm/libsofthsm2.so
export BLINDVAULT_PKCS11_PIN=1234
# Launch 3 independent MinIO buckets for AWS SigV4 2-of-3 erasure sharding
docker compose -f docker-compose.vault.yml up -d
export BLINDVAULT_SHARD0_URL=http://127.0.0.1:9000/blindvault-shard0
export BLINDVAULT_SHARD1_URL=http://127.0.0.1:9002/blindvault-shard1
export BLINDVAULT_SHARD2_URL=http://127.0.0.1:9004/blindvault-shard2
export AWS_ACCESS_KEY_ID=minioadmin
export AWS_SECRET_ACCESS_KEY=minioadmin
./build/BlindVault vault offload batch.csv --state-dir ./bank_state --cloud-dir ./cloud_bucket
# Install Qt 6 development packages & compile the 3-tab desktop console
sudo apt install -y qt6-base-dev libgl1-mesa-dev
cmake -S . -B build-gui -G Ninja -DP2P_BUILD_GUI=ON -DP2P_BUILD_TESTS=OFF
cmake --build build-gui --target BlindVault_GUI
# Launch BlindVault Qt 6 RegTech Operations Console
./build-gui/BlindVault_GUI