Skip to content

Simple password-based file encryption entirely in your browser, interoperable with Cloaker.

License

Notifications You must be signed in to change notification settings

spieglt/Cloaker.js

Repository files navigation

Cloaker.mobi

Please visit https://cloaker.mobi to encrypt/decrypt files!

FAQ

Q: What is this and why is it here?

A: It's an easy way to encrypt a file with a password and decrypt it later. I wrote the desktop version out of frustration that there was no simple, portable, safe way to protect a file with a password. I wanted to make a mobile version but writing apps was a hassle and distributing this as a small static website is much more pleasant than paying Apple $100/year for a developer account and dealing with app stores. This version is interoperable with the desktop version.


Q: How do I encrypt multiple files under the same password?

A: Put them in a .zip first then encrypt that. iOS does this natively, but for Android you'll need a third-party app.


Q: What happens to my data?

A: Nothing you encrypt or decrypt with Cloaker is sent anywhere. Everything is done on your device, by your browser, with JavaScript and WebAssembly. This page is just static HTML/CSS/JS served by GitHub, so they likely collect some metadata about visits (see their privacy policy), but I do not.


Q: Did you write the crypto, you fool? Where's the code?

A: No, Cloaker just uses the pwhash and secretstream APIs from libsodium.js. Code is here.


Q: How large of a file can I encrypt/decrypt?

A: If you don't use the desktop version of Chrome, it depends on how much RAM is in your device. In browsers without FileSystemWritableFileStream, Cloaker has to keep the encrypted or decrypted file in memory in until you save it and navigate away from the page, so it does not work for large files on phones. If you have a computer, you can use the desktop version of Cloaker which is faster, handles arbitrarily large files, and has cross-platform GUI and CLI versions. On the desktop version of Chrome, however, you can encrypt and decrypt arbitrarily large files as the output will stream to your filesystem.


Q: How does it encrypt/decrypt in a long-running operation without interrupting the UI?

A: Web workers!

About

Simple password-based file encryption entirely in your browser, interoperable with Cloaker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published