Security
Last updated 2026-12-03. What we encrypt, what we can see, and how to check our claims instead of trusting them.
In short
Encryption happens in your browser, with the standard Web Cryptography API1. The code that does it is one small file, /assets/crypto.js, published by Sri Murugan Systems under the MIT licence with tests you can run. Its SHA-256 hash is below, so you can check that the file the site serves is the one you read.
What is encrypted, and how
- Encrypted share links (on by default for notes, diagrams and mind maps): your browser makes a random 256-bit key and encrypts with AES-GCM using a fresh random 96-bit IV each time, the IV length NIST recommends2. The key is put in the link after
#k=. That part of a link is the fragment, which is handled only by the browser and is not part of the address sent to the server3. We store the ciphertext and IV. - Protected notes: your password goes through PBKDF2-HMAC-SHA256 with a random 128-bit salt and 600,000 iterations, the count OWASP recommends for PBKDF2-HMAC-SHA2564. That gives 512 bits: the first 256 are the AES-GCM key, the last 256 are a “write token”. When you save, your browser sends the ciphertext, salt, IV and the write token. We store a SHA-256 hash of the token, never the token itself, and use it to check that later saves come from someone who knows the password. The password and the key never leave your browser.
- Password-protected clipboard items: the same PBKDF2 setup gives the AES-GCM key. We store the ciphertext, salt and IV.
What is not encrypted
- Notes, diagrams and mind maps saved in your browser are stored by your browser on your device as plain text, like any other site data. Anyone who can use your browser profile can read them.
- Share links made with “Encrypt the link” turned off, README images, and community templates are readable by our server, because it has to show them.
- Our server sees normal request information: when a link is made or opened, its size and expiry, and your IP address, which we keep only as a salted hash for rate limits and abuse reports (see Privacy).
What this protects against, and what it doesn’t
It protects you if our database or hosting account is leaked or seized, or if someone at notepadsuite looks at stored data: encrypted notes are ciphertext without the key.
It doesn’t protect you if:
- someone gets the full link of an encrypted share (the key is in it), or your password;
- your password is weak: someone with a copy of the database could try guesses offline, and 600,000 PBKDF2 iterations make each guess slow but not impossible;
- your device, browser or a browser extension is compromised;
- the site itself served changed code. Every web app that encrypts in the browser has this limit: you run whatever code the site sends that day. The hash check below is how you detect a change to the crypto file. The pages where you type passwords or open encrypted content (protected notes, the online clipboard, shared notes and embeds) only allow scripts from our own domain (Content-Security-Policy
script-src 'self'). Other pages, including the notepad and the editors where encrypted share links are made, also load Google Analytics from Google’s domain (see Privacy). That script is set up to send only page addresses, not anything you type, but like any script on a page it runs with the page’s access, so on those pages you are also trusting Google’s script.
Check it yourself
- Read the code. crypto.js is about 100 lines with comments. The open-source copy has the same file, its tests, a README and the MIT licence.
- Compare the hash. The crypto file published with this page has this SHA-256 hash:
3b22c3fdf24119a870ed6352e55091c141b072efdfdbc08d4af5bb7abc477d39
Check the live file withcurl -s https://notepadsuite.com/assets/crypto.js | sha256sum. If the two differ, the file has changed since this page was built. - Run the tests. Download
crypto.jsandtest.mjsinto one folder and runnode test.mjs(Node 20 or later). The tests encrypt with our code and decrypt with Node’s own OpenSSL-based crypto, and the other way round, and check that PBKDF2 gives the same bits. - Watch the network. Open your browser’s developer tools, choose the Network tab, and create an encrypted share link. The request to
/api/shareholdsct(ciphertext) andiv, never the key or your text.
Report a problem
If you find a security issue, please write to [email protected] before publishing it, so we can fix it first.