Skip to content
zevbuildPublic

About

Zevsafe lets you encrypt and decrypt your files and store the encrypted .zev files on any cloud provider. Your data stays private, because the provider can’t see what’s inside a .zev file. You can view and encrypt your files easily from any web browser.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

181 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔒 ZevSafe — Zero-Knowledge Offline File & Folder Encryption Portal

ZevBlock Logo

Zevsafe

Help to Encrypt and Decrypt files and folder in any brower & and use Maletary grade security

by zevbuild · Encrypt and decrypt files and entire folders directly in your browser — zero uploads, zero tracking, 100% private & offline.

Official Web App PWA: Install on Mobile & PC License: MIT Security: AES-256-GCM KDF: Argon2id (RFC 9106) & PBKDF2 PWA: Installable 100% Offline Release: v8.30.0 / WEB-VERSION-81


🟢 Current stable release — v8.30.0 (Final Production Release / WEB-VERSION-81 / SW v81): Production Brand & Logo Asset Suite (assets/branding/, tools/generate-branding-assets.js, test/ui/test-branding-assets.js — delivers complete 23-asset branding suite based on Concept 3: Biometric Iris & Safe Dial, including vector SVGs, 800x200 & 600x600 PNG logos, multi-res 16/32/48 favicon.ico, Apple touch icon, Android PWA launcher & adaptive maskable icons, 1200x630 Open Graph & 1200x600 Twitter cards, 800x800 square avatar, 400x400 watermark seal, and 96x96 push badge; verified by 24 automated checks in test suite 38), Single File Decrypted Vault Download & Safe Revocation (app.js, js/document-viewer.js, test/ui/test-single-file-download.js — resolves premature 3-second blob URL revocation in file picker dialogs by increasing revocation delay to 60s with active registry tracking; dynamically resolves MIME types and wraps raw buffers; automatically switches #btn-explorer-download-all to ⬇️ Download File for single-file vaults to bypass unnecessary .zip archiving; preserves file names with dots and spaces; maps re-encryption worker response properties; verified by dedicated test suite 37), Comprehensive SEO & Structured Data Expansion (index.html, blog/posts/*.html, blog/blog.css, sitemap.xml — synchronized softwareVersion to "8.30.0" and injected Schema.org FAQPage rich structured data into index.html; injected complete Open Graph og:*, Twitter Cards twitter:*, canonical links, and Schema.org BlogPosting/TechArticle JSON-LD across all 18 blog articles; eliminated inline styles via .blog-nav-pagination-card--next; refreshed sitemap.xml with 2026-11-19 timestamps and optimized priorities), Primary Vault File Extension Upgrade to .zsafe (app.js, index.html, js/stream-saver.js, js/qr-engine.js, manifest.json, tools/ — upgraded official vault container to .zsafe with 100% backward compatibility for existing .zev and .zevsafe files), Final Production Release & Roadmap Retirement (index.html, blog/index.html, tools/shared-whitelist.js, sitemap.xml — officially transitioned into standalone, feature-complete final production release with development lifecycle concluded; all planned zero-knowledge encryption, Argon2id, PBKDF2 multi-tier, mobile OPFS streaming, optical QR recovery, and 5 GB range streaming capabilities 100% delivered; streamlined clean navigation; 85 precached offline assets), 2FA Keyfile Section Expand & File Picker Activation (styles.css, index.html, app.js — eliminates .is-hidden display override, implementing .v2-keyfile-body.is-open with CSS chevron transitions and accessible .sr-only-file-input pickers for mobile and desktop 2FA keyfile attachment and generation), Universal Dual-Engine Optical QR Scanner & 1-Scan Auto-Decryption (js/qr-engine.js, js/jsqr.js, app.js, index.html, styles.css — dual-engine QR decoding with pure-JS fallback for 100% universal camera and image scanning across all desktop and mobile browsers; instant 1-scan auto-decryption applying credentials, closing modal and unlocking vaults immediately; pending auto-decrypt queue for pre-scanned QRs before vault selection; generic plaintext password QR support; accessible mobile file picker integration), Compact 3-Step Micro-Flow Hero Section (index.html, styles.css — reduced hero section vertical height by over 65% saving ~260px and bringing the interactive Encrypt Folder and Decrypt Vault cards immediately above the fold on all standard screens; punchy single-line title with inline gradient tag and live status badge; intuitive 3-Step Micro-Flow Ribbon 📁 Select Folder or Files → 🔑 Choose Password or Key → 🛡️ Download Encrypted .zsafe for instant 2-second user comprehension; streamlined inline specs strip and full light theme support with WCAG AAA contrast), Encrypt Card UI Modernization & In-Browser Keyfile Generator (index.html, styles.css, app.js — refined 🔑 Save Password and ⚡ Generate into ergonomic pill buttons with micro-hover states, containerized auto-save option in a dedicated modern micro-card, softened pre-encryption alert box to prevent confusion with active form errors, full-width responsive toggle pills with CSS chevron transitions, in-browser 512-bit keyfile generator for effortless 2FA, and Windows Notepad-compatible \r\n recovery sheet formatting), Drop Zone Uploaded File Summary & Metadata Visibility Resolution (index.html, app.js — eliminates .d-none { display: none !important; } conflict on #decrypt-selected-widget and #encrypt-selected-widget, restoring immediate visibility of file icon, file name, and formatted size badge upon vault or folder selection), 4-Tier Security Defense Architecture (index.html, app.js — Standard Security 600,000 PBKDF2 rounds pre-selected by default for instantaneous ~0.2s encryption with zero UI lag, High Security 1.2M rounds, Maximum Security 2.4M rounds, and Ultra Security RFC 9106 Argon2id 64MB memory-hard defense against GPU/ASIC brute-force clusters in Max Security Options), PWA, Storage Tiers & USB Air-Gap Kit Hardening (js/usb-backup-kit.js, js/init.js, js/stream-saver.js), App Shell, UI & Accessibility Hardening, Vault Explorer & Viewers Hardening, Cryptography & Worker Pipeline Hardening, and Consolidated Knowledge Hub & Security Journal Platform. Argon2id (RFC 9106, 64MB) / PBKDF2-SHA512 (600,000–2,400,000 rounds) · 32-byte salt · Full Accessibility (WCAG 2.1 AA/AAA & Section 508, Phase 7) · Roving Tabindex & Modal Focus Traps · PWA Maskable Icons & File Handlers (Phase 5) · Phone Reliability & Screen Wake Lock (Phase 4) · Non-Blocking Browser Storage Check · Strict CSP (Zero 'unsafe-inline') · 100% Inline Style Migration (Phase 3) · Clutter-Free Production Dist Builder · Modular Mobile Cinema Player & Gesture Architecture (Phase 2) · Multi-Worker 4 MB Chunked AES-256-GCM (ZV3\0) · Faster First Load Pipeline & On-Demand Lazy Loading · In-Browser Mobile Video Player Overhaul & Forensic Studio Drawer · Video Player 5.0 (Pro Studio Cyber Cinema: Theater Mode, Forensic Specs HUD, Hotkeys Cheatsheet & Pinch Zoom) · Main Landing Page Cybernetic UI & Bento Overhaul · Cybernetic Navbar & Header Redesign (1-Row Responsive Protection & WCAG AAA Light Mode) · In-Browser Video Player 4.0 (On-Demand Range Streaming & Instant Playback) · Visual Paper-Safe & Optical QR Recovery · Know Your Device Power Hardware Profiler · Multi-Tier PBKDF2 Trial Unlocking · Plausible Deniability Duress Decoys · W3C Credential Management API & Autofill · Parallel WorkerPool (4–8 threads) with bounded backpressure (<105 MB RAM) · Zero-Copy Transferable ArrayBuffers · Instant <100ms Vault Explorer with Ephemeral CryptoKey Caching (<15ms extraction) · In-Vault Image Lightbox Viewer · In-Browser Text Editing & Note Creation · Zero-Knowledge Memory Scrubbing & Zeroization (.fill(0)) · Real-Time Telemetry HUD · 1-Click Offline USB Air-Gap Backup Kit · Consolidated Knowledge Hub & Security Journal (14 In-Depth Guides in blog/) · Universal Offline PWA (v81) on Android, iOS, Windows, Mac, Linux · 280-Item Deep Feature Checklist Certified (100% PASS).


✨ What is ZevSafe?

ZevSafe is a zero-trust, client-side encryption portal designed to lock sensitive files and directory hierarchies into single portable encrypted vaults (.zsafe). It executes entirely within your browser sandbox leveraging the native W3C Web Crypto API — no backend servers, no cloud telemetry, no accounts, and no data transmission over the network.

Once loaded, ZevSafe works 100% offline and air-gapped. It employs v3 Low-RAM Streaming (ZV3\0 / PBKDF2-SHA512 / 600,000 rounds) by default so users can compress, encrypt, and decrypt up to 5 GB on mobile and desktop browsers without out-of-memory crashes, supports an optional Keyfile second factor, provides an instant Decrypted Vault Explorer with an in-browser Cinema Media Player, a high-res Image Lightbox, a Code & Text Document Viewer, and maintains 100% backward compatibility with v2 Standard and v1 Legacy vaults.

Ideal For:

  • Zero-knowledge backup: Encrypting personal archives before storing on USB flash drives, external SSDs, or public cloud storage.
  • Air-gapped security: Encrypting and decrypting data on completely offline machines or in airplane mode.
  • Two-factor protection: Pairing a passphrase with a physical keyfile (e.g., a photo, key file, or document) so neither factor alone can unlock the vault.
  • Instant media streaming: Playing encrypted multi-GB videos and audio files directly inside the browser without downloading decrypted files to disk.
  • In-vault photo and code inspection: Zooming into decrypted high-resolution photos and inspecting source code / text documents directly in the browser with zero disk persistence.
  • Selective file extraction: Unlocking a 5 GB vault catalog in < 100 ms (< 15 MB RAM) and extracting single files by decrypting only their specific 4 MB chunk span.

🚀 Key Features

Feature Description
✍️ Consolidated Knowledge Hub & Security Journal (blog/) Zero-knowledge publication hub containing 14 long-form guides covering daily user workflows (locking, VFS live editing, cinema streaming, optical paper-safe, USB air-gap backup kit, passphrase hygiene) and deep cryptographic disclosures (duress decoys, polyglot steganography, 2.4M PBKDF2 tiers, bit-rot salvage, ZV3 57-byte header specification with Argon2id 0x04 flag, multi-worker parallel crypto, multi-tier mobile storage, and zero-exfiltration air-gap defense). Equipped with the 10 Core Architectural Services directory grid, Security Invariants Matrix, instant client-side search, category filter pills, reading progress tracking, and embedded interactive widgets (PBKDF2 Work Factor Estimator & ZV3 Header Inspector). Precached in PWA and packaged into the 1-Click USB Air-Gap Backup Kit.
🛡️ Argon2id Memory-Hard KDF (Phase 8) Pure client-side zero-dependency RFC 9106 Argon2id ($m=64\text{ MB}$, $t=3$, $p=4$, 256-bit AES-GCM output) rendering GPU and ASIC brute-force clusters economically infeasible. Container flag bit 2 (0x04) auto-detected by unpacker with seamless backward compatibility for PBKDF2 vaults.
♿ Full Accessibility & WCAG 2.1 AA/AAA Hardening (Phase 7) Zero-dependency focus trap and modal inerting controller (js/a11y-manager.js), 100% accessible button and input names (WCAG 2.5.3 visible label matching), Decrypted Vault Explorer roving tabindex listbox with arrow navigation, polite/assertive live feedback regions for progress milestones and debounced password strength, calibrated high-contrast color tokens (≥ 4.5:1 text, ≥ 3:1 controls), ≥ 44×44px touch targets, universal skip links across all 17 HTML pages, and automated headless Chrome CDP axe-core verification (0 critical/serious violations).
📲 PWA Upgrade, File Handlers & Safe Update Engine (Phase 5) Vector-derived maskable icons (192x192 & 512x512) with 80% safe zone padding, Apple touch icons (180x180), W3C File Handling API associating .zsafe, .zevsafe, and .zev vaults on desktop Chrome/Edge (desktop Chromium only; Android/iOS rely on file pickers), real-UI install screenshots (1280x800 & 780x1688), centralized precache generator (tools/build-sw.js with SHA-256 content hashing), and zero-loss update banner (#pwa-update-banner) deferring reloads during active jobs or open vaults.
🔋 Phone Reliability, Screen Wake Lock & Battery Guard (Phase 4) W3C Screen Wake Lock API integration (withWakeLock) preventing phone screen sleep during long multi-GB crypto/packaging tasks, auto-releasing on completion, error, cancel, vault lock, or panic; non-blocking origin browser storage quota advisory (estimate()); background tab throttling protection pausing decorative animations (.tab-hidden) while exempting active spinners; mobile touchscreen GPU blur removal (backdrop-filter: none); and WCAG AA high-contrast focus rings (#0f766e light, #2dd4bf dark).
🛡️ Strict Content Security Policy & Zero-Inline Architecture (Phase 3) Hardened CSP on root deployment (script-src 'self' 'wasm-unsafe-eval'; style-src 'self'), 0 inline styles (migrated 284 inline attributes to 91 modular CSS classes), decoupled initialization runtime (js/init.js), isolated docs CSP via header detachment, zero-clutter dist/ production builder, and 404 handler.
🎬 Modular Mobile Cinema Player & Gestures (Phase 2) Extracted player CSS & JS into modular on-demand assets (-120 KB first paint payload), phone touch ergonomics (≥28px scrubber, ≥44×44px buttons, safe areas), double-tap seek accumulation (±10s, ±20s, ±30s), explicit window.ZevMedia API, vault lock route destruction, and iOS pseudo-fullscreen.
⚡ Faster First Load & On-Demand Pipeline (Phase 1) Deferred non-blocking crypto script delivery, cached dynamic loadScript engine, and on-demand lazy loading for jszip.min.js, js/usb-backup-kit.js, js/qr-engine.js, and passphrase wordlist, slashing initial JS payload by ~151 KB with inlined critical CSS.
📱 Mobile Video Player & Forensic Studio Drawer Zero-clutter cinema viewing on smartphones: 100% edge-to-edge video stage, floating minimal header (≤ 40px), slim single-row transport bar (≤ 56px), and a slide-up forensic studio bottom sheet drawer housing all 17 forensic tools.
🎨 Main Landing Page UI & Bento Architecture Cybernetic card elevation with radiant accent hairlines, live pulsating status dot chips (.card-tag-dot), interactive radial drop zones, Lock/Unlock action button SVGs, and modern bento-style feature cards with full WCAG AAA light theme support.
🔐 AES-256-GCM Authenticated Encryption Military-grade authenticated cipher guaranteeing confidentiality and detecting any bit-flipping, chunk reordering, or file tampering.
📋 280-Item Feature Checklist Master Audit (CHECKLIST_AUDIT_REPORT.md) Comprehensive 280-item architectural and cryptographic audit certifying 100% PASS across all 12 functional sections with 123 automated regression assertions.
🌓 Persistent Light / Dark Theme Engine Cybernetic appearance engine with interactive desktop navbar and mobile drawer toggle buttons, system auto-detection, and persistent local storage (zevsafe_theme).
🖨️ Visual Paper-Safe & Optical QR Recovery (Phase 9) Offline pure-JS ISO/IEC 18004 QR engine generating cold-storage recovery sheets with Guilloche security borders, formatted 8-group salt fingerprints, non-plaintext handwriting boxes, and an in-app optical camera viewfinder with laser targeting + image drop decoder for instant parameter auto-fill.
⚡ Know Your Device Power Profiler (Phase 11) Dedicated 100% offline hardware profiler benchmarking raw AES-NI / NEON WebCrypto throughput (MB/s), PBKDF2 stretching latency across standard and hardened tiers (600k, 1.2M, 2.4M rounds), and RFC 9106 Argon2id memory-hard work factor capacity ($m=1024\text{ KiB}, t=1, p=4$ blocks/sec), classifying hardware tiers (Class S, A, B, C) and recommending optimal vault security parameters.
🛡️ Formal Security Audit (SECURITY_AUDIT_REPORT.md / Interactive Web Report) Comprehensive defense-in-depth audit (Score: 96/100, Grade A+) with CSP enforcement, DOM XSS immunity, PBKDF2 iteration floor, Zip-Slip path traversal elimination, and strict buffer zeroization.
🔑 Native Password Manager Integration (Phase 14) Full W3C Credential Management API integration (navigator.credentials.store & get) and standards-compliant hidden form triggering. Enables 1-click password saving and biometric/credential autofill across Chrome, Bitwarden, 1Password, Dashlane, Apple Keychain, Edge, and KeePassXC with automatic folder-aware identifier binding.
✈️ 100% True Zero-Network Air-Gap Portability (Phase 13) Zero external CDN requests or remote fonts (fonts.googleapis.com and fonts.gstatic.com decoupled). Strict air-gapped Content Security Policy (style-src 'self' 'unsafe-inline'; font-src 'self' data:;) guarantees true offline cold-boot operation with zero outbound network calls and modern native system font fallbacks.
📦 Open Binary Container Standard (FORMAT.md) Fully documented bit-level container specification detailing 57-byte v3 headers, 4 MB STREAM AEAD framing, deterministic 12-byte IV & 42-byte AAD binding math, and tail manifest JSON schemas.
⚡ Multi-Worker Streaming Pipeline (ZV3\0) Streams ZIP64 compression (CompressionStream('deflate-raw')) and parallel 4 MB chunked AES-256-GCM across a dynamic Web Worker pool (clamped to 4–8 cores with credit-based flow control), utilizing zero-copy Transferable buffers to keep peak browser heap under 105 MB.
🛡️ PBKDF2-SHA512 (600,000 Iterations) Key stretching with 600,000 iterations and a 32-byte CSPRNG random salt offloaded to a Web Worker so the UI stays at 60 FPS.
🗝️ Keyfile Two-Factor Authentication (2FA) Mixes a SHA-256 hash of any file (image, key, binary) into derived key material via XOR as a physical second factor.
🔑 Automatic v1 / v2 / v3 Compatibility Sniffs the container header (ZV3\0, ZV2\0, or legacy v1) from the first 57 bytes to transparently decrypt all vault generations.
📁 Dual File & Full Directory Support Select individual files, multi-file selections, or complete directory trees using "Browse Folder" or "Browse Files".
⚡ Native File System Access API Uses window.showDirectoryPicker() with recursive folder hierarchy capture and seamless fallback to HTML5 webkitdirectory.
📂 Instant Decrypted Vault Explorer & Folder Hierarchy Reads 57-byte header and tail manifest in < 100 ms with true hierarchical directory drill-down, interactive breadcrumb navigation (📁 Vault Root / folder), folder sizes, dedicated in-browser PDF preview frame with z-index: 2100 stacking over explorer, and < 15 ms single-file extractions via ephemeral CryptoKey caching.
🖼️ In-Vault Image Lightbox Viewer (js/image-viewer.js) Modular on-demand high-res image preview modal (ensureImageViewerLoaded) decoupled from media player, with smooth 20%–500% zoom scaling, mouse drag-to-pan, wheel zoom, double-click zoom toggle, 90° rotation, pixel resolution badge, seamless prev/next image navigation, and full offline PWA caching.
📄 In-Browser Text Document Editor & Note Creation (js/document-viewer.js) Modular interactive text editor, note creator, and PDF previewer featuring live editing (✏️ Edit / 👁️ Preview), in-vault note creation (➕ New Note), synchronized line-number gutters, tab indentation (4 spaces), Ctrl+S saving, in-session overlay map (editedFiles), full vault export synchronization, 5 MB memory bounds, and lazy on-demand loading (ensureDocViewerLoaded).
🛡️ Zero-Knowledge Session Zeroization Securely zeroes raw keyfile byte arrays with .fill(0) on vault close, lock, or tab unload. Completely nullifies session keys, chunk caches, and media/image blobs in volatile RAM, and scrubs password inputs from the DOM.
⬇️ Multi-Tier Mobile & Desktop Streaming Saves Routes 5 GB downloads via Tier 1 FileSystem Access API, Tier 2 Service Worker /_stream_download stream intercept, and Tier 3 OPFS staging.
🎬 In-Browser Video Player 5.0 (Pro Studio Cyber Cinema & Ergonomic Viewports) Direct instantaneous playback for decrypted video (.mp4, .mov, .webm, .mkv) and audio (.mp3, .wav, .ogg, .flac, .aac) with zero disk writes, on-demand HTTP 206 partial range streaming (< 1s startup for > 1 GB files, < 60 MB RAM peak), expansive fluid Theater Mode (96vw × 92vh, max-width 1560px, T), automated forensic metadata specs HUD (#media-forensic-specs), YouTube-style expanding volume slider, unified transport controls (Play prominent first, track seeks, volume, and time display together on left), numbered 5-step forensic analysis deck (1. Frame, 2. Zoom, 3. A-B Loop, 4. Transform, 5. Filters) with collapsible 🎛️ Studio ▾ drawer toggle (#btn-toggle-tools), interactive keyboard shortcuts cheatsheet overlay (#media-hotkeys-modal, ?), multi-touch pinch-to-zoom engine (1.0×–5.0×), WebAudio vocal clarity dialogue equalizer (+8dB at 2.5kHz), ambient cinema backlight glow, precision cybernetic scrubber timeline with buffer tracking, 1-click lossless full-res frame snapshots, and live forensic filters (Brightness, Contrast, Invert, CCTV).
🎛️ Advanced Cinema Controls & Studio Deck Dedicated volume slider, 200% WebAudio volume gain booster + vocal clarity EQ, mute toggle, variable speed deck (0.25×–4.0×) with < and > shortcuts, ±10s scrubbing and double-tap gestures, track navigation, PiP, fullscreen, aspect ratio cycle, loop playback, and comprehensive keyboard shortcuts ([, ], \, V, +, -, 0, <, >, Shift+M, T, ?, Space, K, J, L, ,, ., B, R, S, F, P, M, Arrows).
📦 Smart Adaptive Compression Instant STORE mode for pre-compressed media/archives + streaming DEFLATE for compressible documents/code.
🤖 Dedicated Native Android App Companion Android application (zevbuild/app-zevsafe) in Kotlin & Jetpack Compose with bit-identical v3 streaming encryption, AndroidX Media3 Cinema player, and background ForegroundService.
💻 1-Click PC Setup (25+ GB) Includes Windows batch launchers (Encrypt-Vault.bat, Decrypt-Vault.bat) and streaming PowerShell scripts for zero-RAM 25 GB–100 GB+ datasets.
📊 Real-Time Telemetry HUD & Pipeline Tracker Visual progress pills (Compress → Encrypt/Decrypt → Save) with live EMA-smoothed throughput (MB/s), active worker thread count badge, live countdown ETA, and an instant operation cancellation controller.
🛡️ Collapsible Max Security Bar Clean, understated cybernetic pill button (#btn-toggle-max-security) that tucks advanced hardening tools (2.4M PBKDF2 rounds, polyglot camouflage, duress decoy) into a smooth collapsible container with auto-expanding active state lighting.
💾 1-Click USB Air-Gap Backup Kit Pure-JS PKZIP archive generator and direct USB drive writer (js/usb-backup-kit.js) exporting a 100% self-contained standalone vault with multi-OS launchers (.bat, .sh) and zero Google font/CDN dependencies.
🔑 Native Password Manager Sync Full W3C Credential Management API (navigator.credentials.store) and autofill triggers, saving vault passwords labeled with encrypted folder names directly to Chrome, Bitwarden, 1Password, and Apple Keychain.
💎 Cybernetic Glassmorphic Header & 3-Zone Navbar Elevated 24px frosted glass navigation bar with interactive brand hover rotation, 3-zone semantic hierarchy (Brand, Links, Action Deck), responsive 1-row protection (769px–1240px), comprehensive WCAG AAA Light Theme styling, and 4th breakthrough hero trust pill (5 GB Instant Streaming).
📱 Phone-Only Right-Aligned Hamburger Navigation Replaces cramped horizontal navbar links on mobile screens (≤ 768px) with a cybernetic hamburger button pinned to the right edge, smoothly revealing a frosted glass navigation drawer; hidden on desktop.
🌐 Universal Auto-Hiding Header & Logo Auto-hides sticky navbar and logo on downward scroll across all desktop, tablet, and mobile browsers with 60 FPS hardware-accelerated transitions to maximize screen workspace.
🔔 Non-Blocking Glassmorphic Toasts Replaces all intrusive browser alerts with smooth, dark-glass toast notifications and animated inline field shakes (@keyframes fieldShake) on validation failures.
📐 Symmetrical Above-The-Fold Layout Optimized vertical shell spacing and CSS Grid stretch alignment with bottom-anchored CTA action buttons for seamless laptop drop-zone visibility.
⚡ Optimized WebP & Compressed Assets All brand icons, OG social images, and logos compressed in-place (57%+ payload reduction) with next-gen WebP support for high-speed loading.
📲 Installable Offline PWA Progressive Web App with Cache-First Service Worker (v75), floating non-intrusive install banner, auto-updating in background, fully functional offline.
🚀 Future Roadmap & Architecture Master Plan (future-plans/FUTURE_PLAN.md) Comprehensive multi-phase blueprint detailing delivered and upcoming strategic milestones (Argon2id WASM, QR Paper-Safe recovery, Document Redaction, Hardware Profiler, Offline i18n, True Offline USB Backup, Native Password Manager Integration).
📚 Knowledge Hub & Complete Service Manual (knowledge/) Dedicated knowledge base disclosing all 10 services with dual-perspective switch (Simple User Guides vs Deep Cryptographic Specs for auditors), client-side search, and security invariants matrix.
📖 Comprehensive Documentation & Technical Guide In-depth portal (how-to-use-zevsafe/) with simple step-by-step instructions for everyday users and complete technical specifications (ZV3\0 STREAM AEAD, 12B IV, 42B AAD, worker flow control).
📜 Interactive Changelog Portal Dedicated in-app and web release notes page (change-log/) with live filtering and search across all releases.

🔐 How It Works

v3 / v2 — Streaming & Standard Architecture (Default)

[Files / Directory Tree]
        │
        ▼
Packaging & Granular Smart Compression
   ├── Pre-compressed Media / Archives (.mp4, .jpg, .zip, etc.)  ──►  STORE Mode (Instant 0-CPU)
   └── Compressible Code & Docs (.txt, .json, .csv, .pdf, etc.) ──►  Fast DEFLATE (Level 1)
        │
        ▼
Generate Random Nonces: Salt (32 bytes) + IV (12 bytes) via window.crypto.getRandomValues()
        │
        ▼
PBKDF2-SHA512 (Password, Salt, 600,000 iterations)  ──►  256-bit Raw Key Bytes
        │
        ▼ (Optional Keyfile 2FA)
SHA-256(Keyfile) XOR RawKeyBytes  ──►  Hardened Key Material
        │
        ▼
Import as AES-256-GCM CryptoKey
        │
        ▼
AES-256-GCM Encrypt(ZipBytes, Key, IV)  ──►  Ciphertext + 128-bit Authentication Tag
        │
        ▼
Assemble Single Portable Vault (.zsafe / .zev):
┌──────────────┬──────────────┬───────────┬──────────────────┬────────────────┬──────────────────────────────┐
│ Magic 'ZV2\0'│ Version 0x02 │ Flags (1) │ Salt (32 Bytes)  │ IV (12 Bytes)  │ Ciphertext + GCM Auth Tag    │
│ 4 Bytes      │ 1 Byte       │ (0x01=Key)│                  │                │ (Variable Length)            │
└──────────────┴──────────────┴───────────┴──────────────────┴────────────────┴──────────────────────────────┘
0              4              5           6                  38               50

v1 — Legacy Mode Architecture (Backward Compatible)

[Directory Tree]
        │
        ▼
In-Memory ZIP Packaging
        │
        ▼
Generate: Salt (16 bytes) + IV (12 bytes) via CSPRNG
        │
        ▼
PBKDF2-SHA256 (Password, Salt, 100,000 iterations)  ──►  256-bit AES-GCM Key
        │
        ▼
AES-256-GCM Encrypt  ──►  Ciphertext + 128-bit Authentication Tag
        │
        ▼
Output File (.zsafe / .zev):
┌──────────────────────────────┬──────────────────────────────┬────────────────────────────────────────┐
│ Salt (16 Bytes)              │ IV (12 Bytes)                │ Ciphertext + 128-bit GCM Auth Tag      │
└──────────────────────────────┴──────────────────────────────┴────────────────────────────────────────┘
0                              16                             28

Automated Format Routing: When unlocking a vault, ZevSafe inspects the first 4 bytes. If the header matches ZV2\0, it automatically executes the v2 pipeline and alerts the user if a keyfile is required (Flags & 0x01). If no magic header is present, it transparently decrypts the file using the v1 legacy pipeline.


🛡️ Cryptography Specifications

Parameter v2 Standard (Default) v1 Legacy (Compatibility)
Cipher AES-256-GCM (Galois/Counter Mode) AES-256-GCM
Key Size 256 bits 256 bits
IV / Nonce Size 96 bits (12 bytes, unique per encryption) 96 bits (12 bytes, unique per encryption)
Salt Size 256 bits (32 bytes cryptographically random) 128 bits (16 bytes cryptographically random)
KDF Algorithm PBKDF2-SHA512 PBKDF2-SHA256
KDF Iterations 600,000 rounds (OWASP 2024+ benchmark) 100,000 rounds
Second Factor (2FA) Optional physical Keyfile (SHA-256 XOR-mixed) Not supported in v1
Tamper Protection 128-bit GCM Authentication Tag 128-bit GCM Authentication Tag
Header Identifier 4-byte magic sequence: 0x5A 0x56 0x32 0x00 (ZV2\0) Raw header [ Salt(16) | IV(12) ]
Random Entropy Native window.crypto.getRandomValues() Native window.crypto.getRandomValues()

Tamper Resistance: AES-GCM is an Authenticated Encryption with Associated Data (AEAD) scheme. Any modification, bit-flip, or corruption of the encrypted file causes authentication to fail immediately during decryption, preventing silent data degradation or malicious injection.


📖 Step-by-Step Usage Guide

🔐 1. Encrypting Files or Folders

  1. Open ZevSafe in any modern web browser.
  2. Provide your data using either method:
    • Click 📁 Browse Folder to select a full folder tree (powered by native OS directory picker).
    • Click 📄 Browse Files to select loose files or multiple documents.
    • Or drag and drop files or a directory directly into the drop zone.
  3. Enter a strong password or PIN (minimum 4 characters) and confirm it.
  4. (Optional) Click Select Keyfile to bind a physical file (photo, document, random file) as an indispensable second factor.
  5. Click Encrypt & Download:
    • The 3-stage tracker shows compression and encryption progress in real time.
    • Your encrypted vault (yourfolder.zsafe) automatically downloads.
  6. The Save Vault Password dialog opens:
    • Click 📋 Copy to copy your password.
    • Click 💾 Save Password to save credentials directly to your browser's password manager.
    • Click ⬇️ Download Sheet or 🖨️ Print Sheet to generate an offline, printable recovery sheet (<folder>_password_recovery_sheet.txt).

🔓 2. Decrypting a Vault

  1. Drag and drop your .zsafe or legacy .zev vault file into the Unlock a Vault panel (or click "Select .zsafe File").
  2. ZevSafe reads the header:
    • If the vault was encrypted with a keyfile, a prompt asks you to select your keyfile.
    • If it is a standard password-only vault, proceed directly.
  3. Enter your password and click Decrypt & Download.
  4. The Decrypted Vault Explorer modal opens immediately.

📂 3. Using the Decrypted Vault Explorer

The temporary in-memory explorer lets you interact with decrypted files without writing unencrypted archives to disk:

  • Play Media: Click ▶️ Play on any video or audio file to launch the cinema player.
  • Single File Download: Click ⬇️ Save on any row to download that specific file.
  • Search & Filter: Filter by filename via the instant search bar, or switch category tabs (Videos, Audio, Photos, Docs, Code, Archives).
  • View Toggle & Sorting: Switch between List and Grid layout, and sort by Name, Size, or File Type.
  • Batch Download: Select multiple files using checkboxes and click ⬇️ Download Selected.
  • Download Everything: Click ⬇️ Download All (ZIP) in the header to export the entire folder as a single ZIP archive.

🎬 4. Cinema Media Player & Shortcuts

When viewing decrypted media, use the full-featured cinema player:

  • Playback Speed: Select speeds from 0.5× to 2.0×.
  • Seek: Jump ±10 seconds with dedicated buttons or arrow keys.
  • Playlist: Auto-detects all audio/video tracks in the vault; skip with ⏮️ Prev / ⏭️ Next.
  • Picture-in-Picture & Fullscreen: Multi-task or watch in full display mode.
  • New Tab Stream: Click ↗️ New Tab to stream the decrypted media in an isolated browser window.

Keyboard Shortcuts:

Key Action
Space Play / Pause
← / → Rewind 10s / Forward 10s
↑ / ↓ Volume Up / Volume Down (5%)
Shift + ← / → Previous Track / Next Track
F Toggle Fullscreen
P Toggle Picture-in-Picture (PiP)
M Mute / Unmute
Esc Close Media Player

⚡ File Size Capacity & Large Vaults

Because ZevSafe performs all compression, key derivation, and cryptographic transforms in client memory, processing limits depend on available browser RAM:

Platform / Device In-Browser Safe Capacity Recommended Tool
Desktop (Chrome, Edge, Firefox, Brave) Up to ~5 GB+ In-Browser Web App (Zero-Copy Architecture)
Mobile (Android Chrome, iOS Safari) Up to ~2.5 GB In-Browser Web App / PWA
Android Dedicated Native App Multi-GB (Bounded Heap < 150 MB) Native Android APK
Large Datasets (25 GB – 100 GB+) Unlimited (Zero-RAM Streaming) 1-Click PC Setup (Encrypt-Vault.bat / PowerShell)

Need to Encrypt 25 GB to 100 GB+?

For massive datasets that exceed browser JavaScript heap allocations:

  1. Click 💻 PC Setup (25+ GB) in the navigation bar to download the pre-configured Windows toolkit.
  2. Drag and drop any folder onto Encrypt-Vault.bat (or drag a .zsafe or .zev file onto Decrypt-Vault.bat).
  3. The PowerShell streaming engine (encrypt.ps1 / decrypt.ps1) processes data chunk-by-chunk with zero RAM footprint, matching the exact v2 standard format.

🤖 Dedicated Android Native App (app-zevsafe)

For Android users requiring background encryption, system file manager associations, and native hardware media playback, ZevSafe provides an official native Kotlin Android application:

  • 📦 Releases & APK Downloads: https://github.com/zevbuild/app-zevsafe/releases/latest
  • 🔒 100% Zero-Knowledge & Client-Side: No internet permissions requested, zero network analytics, and zero plaintext file caching on disk during playback.
  • ⚡ Full ZV3\0 STREAM AEAD Compatibility: Interoperates with vaults created in the browser or via desktop PowerShell toolkits.
  • 🎬 ExoPlayer Cinema Media Player: In-app streaming playback for multi-GB encrypted video and audio directly through AndroidX Media3 without temporary disk extraction.
  • ⚙️ Persistent Background ForegroundService: Lock multi-GB archives in the background with persistent notification progress, live speed telemetry, and wake-lock protection.
  • 📲 System Share Sheet & File Integration: Open .zsafe or .zev files directly from any file manager (ACTION_VIEW) or encrypt files/folders straight from Android's share menu (ACTION_SEND).

📲 PWA — Install as an Offline App

ZevSafe is a certified Progressive Web App. Install it once to use it as an offline desktop or mobile application:

Desktop (Google Chrome / Microsoft Edge / Brave)

  1. Navigate to zevsafe.pages.dev.
  2. Click the Install icon (➕ or computer display) in the URL address bar, or click Install on the bottom banner.
  3. Launch ZevSafe directly from your Start Menu, Taskbar, or Applications launcher.

Desktop File Handling Integration (.zsafe / .zev Vault Associations)

On desktop Chromium browsers (Google Chrome, Microsoft Edge, Opera), ZevSafe registers as an OS-level file handler for .zsafe, .zevsafe, and .zev vaults (application/x-zevsafe-vault). Double-clicking a .zsafe or .zev file in Windows Explorer, macOS Finder, or Linux file managers launches or switches to ZevSafe directly in Decrypt mode with the vault selected.

Platform Note: The W3C File Handling API is supported on desktop Chromium browsers (Chrome & Edge on Windows, macOS, Linux, ChromeOS). Mobile browsers (Android and iOS) do not yet expose the File Handling API to PWAs; on Android and iOS, vaults are opened via the in-app file browser or drag-and-drop.

Safe PWA Version Updates (Zero Work Loss)

When a new version of ZevSafe is deployed, the Service Worker precaches the update in the background and presents a non-intrusive #pwa-update-banner ("New Version Available"). ZevSafe's canSafelyReload() guard guarantees that the app will never reload during an active encryption/decryption job or while an unencrypted vault is open in memory without explicit user confirmation.

Android (Chrome)

  1. Open zevsafe.pages.dev.
  2. Tap the "Install ZevSafe" banner at the bottom of the screen (or tap menu ⋮ → Add to Home screen).
  3. Open ZevSafe from your home screen like a native Android app.

iOS / iPadOS (Safari)

  1. Open zevsafe.pages.dev in Safari.
  2. Tap the Share button (box with upward arrow ⎋).
  3. Scroll down and select "Add to Home Screen".
  4. Tap Add in the top-right corner.

✈️ Airplane Mode Verified: You can disconnect Wi-Fi and mobile data completely. The Service Worker serves all assets from cache, and Web Crypto runs locally.


🗂️ Project Structure

zevsafe/
├── index.html                      # Main portal UI (Encrypt, Decrypt, Explorer, Media Player)
├── how-to-use-zevsafe/
│   └── index.html                  # In-depth technical documentation & user guide
├── change-log/
│   └── index.html                  # Interactive release history and changelog portal
├── js/                             # Modular streaming engine & Web Worker pipeline
│   ├── argon2id.js                 # RFC 9106 Argon2id memory-hard KDF & Blake2b-512 PRF
│   ├── crypto-worker.js            # Off-thread PBKDF2-SHA512, deflate compression, AES-GCM
│   ├── stream-crypto.js            # v3 STREAM AEAD cryptographic primitives
│   ├── stream-packer.js            # Streaming ZIP64 packager with 24B Data Descriptors
│   ├── stream-saver.js             # 4-tier download engine (FSA, SW, OPFS, memory fallback)
│   ├── stream-unpacker.js          # Tail-manifest reader & selective chunk range extractor
│   └── worker-bridge.js            # Zero-copy Transferable buffer bridge with backpressure
├── docs/                           # Internal architecture, design specs, and test documentation
│   ├── README.md                   # Documentation directory index
│   ├── ARCHITECTURE.md             # 5 GB streaming architecture specification
│   ├── WEB_APP_DESIGN.md           # Web application design and cryptographic details
│   ├── TEST_INFRA.md               # E2E test infrastructure specification
│   ├── TEST_READY.md               # Test suite readiness report
│   ├── ORIGINAL_REQUEST.md         # Milestone 5 requirements and memory bounds
│   └── task.md                     # Development roadmap and historical task tracker
├── tools/                          # Windows PC 1-click zero-RAM streaming tools (25GB - 100GB+)
│   ├── README.md                   # Tools usage guide
│   ├── Encrypt-Vault.bat           # 1-click drag-and-drop batch folder encryptor
│   ├── Decrypt-Vault.bat           # 1-click drag-and-drop batch vault decryptor
│   ├── encrypt.ps1                 # Streaming PowerShell encryption script
│   └── decrypt.ps1                 # Streaming PowerShell decryption script
├── test/                           # Automated regression, unit, and integration test suites
│   ├── test-android-encryption.js  # Mobile browser OPFS & memory regression tests
│   ├── test-integration-m5.js      # Milestone 5 streaming pipeline integration tests
│   ├── test-real-playback.js       # End-to-end real playback & range streaming test suite
│   └── ...                         # E2E test runners and synthetic streaming mocks
├── app.js                          # Main UI controller: state, drag & drop, Explorer, player
├── styles.css                      # Glassmorphic responsive styling, cinema player, dark theme
├── sw.js                           # PWA Service Worker (Cache-First & synthetic download route)
├── manifest.json                   # Web App Manifest for standalone desktop/mobile installation
├── assets/                         # Brand logos, PWA launcher icons & vector assets
│   ├── README.md                   # Asset specifications & dimensions reference
│   ├── icon-192.png / .webp        # PWA launcher icons (192×192)
│   ├── icon-512.png / .webp        # PWA launcher icons (512×512)
│   ├── zevsafe-logo.png / .webp    # High-res 3D metallic lock-shield brand assets
│   ├── zevsafe-og.png / .webp      # Open Graph social preview banners (1200×630)
│   └── favicon.svg                 # Vector brand favicon (minified)
├── favicon.svg                     # Root fallback vector brand favicon
├── jszip.min.js                    # Local offline JSZip library for folder archive packaging
├── robots.txt / sitemap.xml        # Search engine discovery and indexing rules
├── CHANGELOG.md                    # Release history and milestone documentation
├── PROJECT_MEMORY.md               # Cross-platform Project Memory knowledge base
└── archive/
    └── android-native-planning/    # Historical planning docs

💻 Run Locally

ZevSafe requires no build step, no npm packages, and no node_modules. It is built with vanilla HTML5, CSS3, and modern JavaScript.

Quick Start

Clone the repository and open index.html directly in your browser:

git clone https://github.com/zevbuild/zevsafe.git
cd zevsafe

# Open directly:
start index.html       # Windows
open index.html        # macOS
xdg-open index.html    # Linux

Running with a Local Web Server

To test PWA installation, Service Worker caching, and full offline synchronization, serve over localhost:

# Using Python 3:
python -m http.server 8080

# Or using Node:
npx serve .

Then visit http://localhost:8080 in your web browser.


⚠️ Security Principles & Zero-Knowledge Guarantees

  • Passphrase Sovereignty: ZevSafe enforces a zero-knowledge architecture. There is no password recovery mechanism, reset link, or administrative backdoor. If you lose your password or keyfile, your encrypted vault is mathematically unrecoverable.
  • Keyfile Protection: When keyfile 2FA is enabled, the keyfile is combined with your password via SHA-256 XOR mixing. Always store your keyfile on a separate physical medium from your .zsafe or .zev vault.
  • Volatile Memory Only: Decrypted files exist strictly in volatile browser RAM. Nothing is written to IndexedDB, LocalStorage, or disk unless you explicitly click a download or save button.
  • Cache Isolation: The Service Worker (sw.js) explicitly excludes .zsafe, .zevsafe, and .zev files and temporary blob: URLs from cache storage, ensuring decrypted data can never be persisted in browser cache.
  • Air-Gapped Operation: All encryption operations take place on the local CPU via the browser's native C++ Web Crypto implementation. No telemetry, analytics, or external API calls are made.

👤 Author & Acknowledgements

Created by zevbuild — dedicated to developing privacy-centric, zero-knowledge, and offline-first open source tools.

Documentation & Guide: how-to-use-zevsafe/
Security Journal & Blog: blog/
Changelog & Updates: change-log/
Live Portal: https://zevsafe.pages.dev


📜 License

This project is licensed under the MIT License — free to use, modify, audit, and distribute.


ZevSafe — Secure your data. Trust no one. Not even us.

About

Zevsafe lets you encrypt and decrypt your files and store the encrypted .zev files on any cloud provider. Your data stays private, because the provider can’t see what’s inside a .zev file. You can view and encrypt your files easily from any web browser.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages