2ClickKit

Client-Side Secure Notes & Zero-Knowledge Encryption

Files Never Leave Your Device

Encrypt confidential text, passwords, and recovery keys with hardware-accelerated AES-256-GCM and 100,000-iteration PBKDF2 in your browser.

Key derived with PBKDF2 (100,000 rounds of SHA-256)
CipherAES-256-GCM Authenticated
Key DerivationPBKDF2-HMAC-SHA256 (100k rounds)
Entropy Initialization128-bit Salt + 96-bit CSPRNG IV
Network Transmission0% (Pure Client Sandbox)

Zero-Knowledge Cryptography: Safeguarding Sensitive Notes In-Browser

In an era of ubiquitous cloud services, centralized server breaches, and mass surveillance, sharing confidential secrets—such as database root credentials, SSH private key passphrases, API secrets, and cryptocurrency recovery mnemonics—poses extreme risk when entrusted to traditional note-sharing pastebins. Traditional services receive plaintext payloads over the wire, storing them in centralized relational databases susceptible to insider threats, SQL injection vulnerabilities, and government subpoenas.

The Zero-Knowledge client-side architecture eliminates this vulnerability entirely. By utilizing the browser's native W3C Web Cryptography API, cryptographic transformations execute exclusively within the client device sandbox. The remote web hosting server acts merely as a static content delivery network (CDN) that delivers static HTML, CSS, and JavaScript assets—never receiving, inspecting, or processing secret data.

The Cryptographic Pipeline: AES-256-GCM & PBKDF2

This tool enforces modern cryptographic engineering best practices defined by NIST and OWASP:

Cryptographic Layer Primitive Specification Security Objective
Entropy Initialization 128-bit CSPRNG Salt (16 bytes) Guarantees unique key derivation across identical passphrases; defeats rainbow tables.
Key Derivation Function PBKDF2-HMAC-SHA256 (100,000 rounds) Stretches user passphrases to 256 bits; enforces heavy computational cost against GPU cracking.
Initialization Vector (IV) 96-bit CSPRNG Nonce (12 bytes) Ensures ciphertext semantic security; prevents identical plaintexts from yielding duplicate ciphers.
Authenticated Cipher AES-256-GCM (Galois/Counter Mode) Simultaneously provides high-speed encryption and cryptographic integrity verification (GMAC).
Network Isolation URI Fragment Identifier (#data=...) Prevents ciphertext transmission in HTTP request headers; mathematically invisible to server access logs.

Why Authenticated Encryption (AEAD) is Essential

Historical encryption schemes separated confidentiality from integrity, relying on unauthenticated cipher block modes like Cipher Block Chaining (CBC). Unauthenticated modes are vulnerable to devastating chosen-ciphertext attacks, such as the Vaudenay padding oracle attack:

  • The Malleability Vulnerability: In unauthenticated modes, an active man-in-the-middle adversary can flip bits in the ciphertext and observe server error codes to systematically reconstruct the plaintext byte by byte.
  • The GCM Defense: AES-GCM incorporates an authentication tag computed over the Galois field GF(2^128). If an attacker modifies even a single bit of the ciphertext, IV, or metadata, the authentication check fails completely, and the Web Crypto engine aborts decryption without leaking timing or padding side-channels.

RFC 3986 URI Fragments: Zero-Knowledge URL Sharing

When generating a shareable link for a recipient, the encrypted Base64 package is appended after the hash character:

https://2clickkit.app/tools/privacy/secure-notes#data=eyJ2Ijox...

Under Section 3.5 of RFC 3986, the fragment identifier is reserved exclusively for client-side user agents. When your browser requests this page, it transmits only the path:

GET /tools/privacy/secure-notes HTTP/2

The web server never sees the #data=... string. Once the static HTML and JavaScript load into the recipient's browser, the local JavaScript reads window.location.hash, parses the package, and prompts for the decryption passphrase. The communication remains completely end-to-end encrypted!

Operational Security Advice

Always transmit the decryption passphrase across a separate communication vector (such as an encrypted Signal voice call or face-to-face) rather than the same medium used to deliver the encrypted link. If an adversary compromises an email account, possessing the encrypted link without the passphrase yields zero information.

How to Use Secure Encrypted Notes

  1. Draft Secret Note & Supply Passphrase

    Enter private credentials, recovery seeds, or sensitive text and set a strong passphrase to derive your cryptographic key.

  2. In-Browser AES-256-GCM Encryption

    The tool derives a 256-bit symmetric key using PBKDF2 (100,000 rounds of SHA-256) and encrypts the note payload with hardware-authenticated AES-GCM.

  3. Share Zero-Knowledge Link or Save Payload

    Copy the encrypted Base64 package or generate a URL hash link (#data=...). Because browsers never send URL hashes to web servers, your data is mathematically invisible to network sniffers.

AES-256-GCM Client-Side Encryption Example

Plaintext Note
Production database password: MySecretPassphrase!2026
Encrypted Package
eyJ2IjoxLCJzYWx0IjoiNTA5YjQ5...IiwiaXYiOiI5Y2E4...IiwiY3QiOiI4ZTI5...

Encrypted in browser RAM using 100,000 rounds of PBKDF2.

Technical Specifications

  • Supported Inputs: Base64 Encrypted JSON Package, Zero-Server URI Fragment Link, Decrypted Plaintext
  • Input Limit: Unlimited client-side computation (browser memory limited)
  • Processing Engine: 100% In-Browser W3C Web Cryptography API
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your Authenticated AES-256-GCM ciphertexts are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Best Practices & Tips

  • Transmit the secret passphrase through an out-of-band channel (e.g., Signal or an in-person conversation) separate from the encrypted link.
  • Store sensitive backup recovery phrases with high-entropy passphrases containing at least 16 mixed characters.
  • Click the Zero-Trace Wipe button immediately after completing your session on shared or public workstations.

Frequently Asked Questions

How does client-side zero-knowledge encryption work in this tool?

The application utilizes the native W3C Web Cryptography API (crypto.subtle) running exclusively inside your local browser memory. When you enter a note and passphrase, your device generates a cryptographically random 16-byte salt and 12-byte IV, computes 100,000 rounds of PBKDF2-HMAC-SHA256 to derive an AES-256 key, and encrypts the plaintext. The unencrypted text and passphrase never leave your device.

What is AES-256-GCM and why is it considered the gold standard?

AES-GCM (Galois/Counter Mode) is an Authenticated Encryption with Associated Data (AEAD) cipher. Unlike older cipher block modes (like CBC or ECB) that only provide confidentiality and are vulnerable to padding oracle attacks, GCM provides both confidentiality and mathematical integrity authentication (GMAC). If even a single bit in the ciphertext is modified, decryption immediately halts.

Why does the shareable link use the URL hash fragment (#data=)?

According to the RFC 3986 URI standard, the fragment identifier (everything following the hash # character) is processed strictly by the local browser and is never included in the HTTP GET request transmitted to the hosting web server or logged in reverse proxy access logs. This guarantees that your encrypted payload remains zero-knowledge.

Can 2ClickKit administrators decrypt or recover my forgotten password?

No. Because 2ClickKit possesses zero servers, zero databases, and zero telemetric key escrow, there is mathematically no backdoor or recovery mechanism. If you lose your passphrase, the encrypted ciphertext cannot be decrypted by anyone.

Why does the tool require 100,000 rounds of PBKDF2?

Password-Based Key Derivation Function 2 (PBKDF2) applies repeated cryptographic hashing (100,000 iterations of SHA-256) to slow down brute-force and dictionary attacks. While modern consumer GPUs can calculate billions of raw SHA-256 hashes per second, computing 100,000 iterative rounds forces an attacker to spend significant computational time per guess.

What does the "Zero-Trace Wipe" button do?

The Zero-Trace Wipe button clears all plaintext, passphrase state, ciphertext packages, and derived keys from local JavaScript memory, and purges the URL hash fragment using the HTML5 History API without triggering a page reload.