DEV Community

kitwharf
kitwharf

Posted on Originally published at kitwharf.com

Why You Should Never Paste Secrets Into Server-Side PGP or Bcrypt Tools (And How Browser RAM Fixes It)

Have you ever needed to quickly generate a Curve25519 PGP key for GitHub commit signing, or test a $2b$12$ Bcrypt hash from a staging database—and found yourself hesitating before pasting a real secret into a random "online generator" website?

That hesitation is healthy.

The Hidden Risk of Server-Side Crypto Utilities

Many top-ranking online PGP and Bcrypt utilities still run gpg or bcrypt on a backend server via an HTTP POST request. Even when a site claims "we don't log your data," your sensitive input still passes through:

  • CDN / reverse-proxy request logs
  • Application error monitoring and APM traces
  • Shared container memory on a third-party cloud host

If you paste a production password into a server-side Bcrypt verifier, or generate an OpenPGP private key on someone else's CPU, the zero-knowledge guarantee is already broken.

Running OpenPGP & Bcrypt 100% Locally in Browser RAM

Modern browsers expose hardware-accelerated window.crypto.getRandomValues and WebCrypto primitives, allowing mature libraries like OpenPGP.js and bcryptjs to execute entirely inside your local browser tab:

1. Offline OpenPGP Key Generation, Encryption & Cleartext Signing

With KitWharf's OpenPGP Key Generator, Encryptor & Signer:

  • Generate Curve25519 (Ed25519/Cv25519) or RSA 4096-bit key pairs in browser RAM (complete with an automatic Emergency Revocation Certificate).
  • Test end-to-end encryption with 1-click ephemeral demo sandboxes (like Encrypt .env / Secret Handoff or Sign Security Advisory RFC 4880).
  • Never persist private keys or passphrases in localStorage, and wipe active memory in 1 click with Clear Memory.

2. Local Bcrypt Hashing, Verification & 72-Byte UTF-8 Auditing

With KitWharf's Bcrypt Hash Generator & Verifier:

  • Benchmark OWASP Cost 12 (4,096 iterations) vs CI/CD Cost 4 directly on your own CPU.
  • Catch Blowfish's silent 72-byte UTF-8 truncation limit in real time with a live byte counter and warning badge (crucial when users pick long Diceware passphrases or multi-byte Unicode characters).
  • Export hash metadata as JSON with the plaintext intentionally omitted.

How to Verify Zero-Upload Behavior Yourself

  1. Open kitwharf.com/pgp-tool/ or kitwharf.com/bcrypt-generator/.
  2. Open DevTools (F12) → Network tab (or disconnect your Wi-Fi completely).
  3. Generate a Curve25519 key pair or compute a Cost 12 Bcrypt hash.
  4. Observe zero outgoing HTTP requests.

Read the full technical guides:

What cryptographic utility do you still avoid running in a browser—and what would make you trust it offline?

Top comments (0)