CipherGap is an open-source Chrome extension that adds client-side encryption to Bale Web. Rubika, Eitaa, and Splus integrations are planned but are not active yet.
Messages are encrypted locally in your browser before being sent, ensuring that only users with the shared secret can read the original content.
- AES-256-GCM message and attachment encryption in the browser
- Per-chat keys and optional automatic message decryption
- ECDH P-256 key exchange with a six-digit SAS verification step
- Persistent peer-fingerprint change warnings (TOFU)
- Explicit accept/decline controls for incoming key exchanges
- Manifest V3 with no external servers or cloud processing
git clone https://github.com/alisharify7/CipherGap.git- Open
chrome://extensions - Enable Developer Mode
- Click Load unpacked
- Select the inner
CipherGap/directory that containsmanifest.json
The extension is now ready to use.
- Open a conversation in Bale Web.
- Open CipherGap and choose Exchange key securely.
- The other participant opens CipherGap and accepts the incoming request.
- Compare the six-digit verification code over a trusted channel, then mark the key verified.
- Use the injected Encrypt button to send an encrypted message. Attachments are encrypted as
.cgpefiles when the chat key is available.
A manually shared key is available under Advanced, but it remains marked unverified.
- JavaScript
- HTML/CSS
- Chrome Extensions API (Manifest V3)
- AES Encryption
- Encryption and decryption occur entirely on the client side.
- Incoming key exchanges require explicit approval and remain unverified until the SAS codes are compared.
- Peer fingerprints are retained when a chat key is cleared so unexpected identity changes can still be detected.
- CGPE v1 processes complete files in memory and therefore applies a 100 MB safety limit.
- CipherGap has no backend; plaintext processing happens locally before ciphertext is sent through Bale.
- Source code is publicly available for review and auditing.
CipherGap improves privacy on supported messaging platforms, but users should independently review the cryptographic implementation before relying on it for highly sensitive communications.
Contributions, bug reports, and feature requests are welcome.
- Fork the repository
- Create a feature branch
- Submit a pull request
Released under the MIT License.
β If you find CipherGap useful, consider starring the repository.