How browser-side file encryption works (AES-256-GCM), and where it stops
Disclosure: we're the TinyX team and this post is about our own product. Everything below comes from what we publish on our features and security pages, and from how the product works today. Where a limit matters, we say so. "Encrypted" is one of the least useful words in file sharing. Almost every service encrypts files on disk and protects the connection with TLS. That stops someone stealing a…
TinyX's browser-side file encryption employs AES-256-GCM, a widely accepted standard for securing data. This encryption method uses a 256-bit key and the Galois/Counter Mode (GCM) for authentication, ensuring that the file remains secure even if the provider gains access to the encrypted file.
The encryption process takes place on the user's browser, meaning that the provider never receives the original file or the password/key. Instead, the provider only receives a unique verifier, which is generated by the browser using the file's password. This verifier is encrypted along with the file and sent to the provider.
Despite the strong encryption provided by AES-256-GCM, there are certain limits to this design. For instance, the provider can still potentially open the file, either for preview or support reasons, as they possess the necessary decryption key. Furthermore, while each chunk of large files is independently authenticated, large files can be vulnerable to reordering or truncation attacks if more than 16 MiB are involved. Lastly, the provider can potentially access the filenames and file sizes in plaintext.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to