by fcremo · 9y ago · 0 comments
Edit: also, password protection is enforced server side, and has nothing to do with encryption
The password encryption is indeed server-side, but it is mainly there to protect the file against anyone who somehow finds/guesses the URL and it's a useful feature if you want to slightly increase the level of security without encrypting the file with AES.
That is incorrect. Knowing the hash does not mean you know the contents of the file. You should generate encryption keys randomly, preferably using a secure random method such as that shipped with SJCL, rather than JavaScript's random API.
Random strings and numbers are also securely generated through a CSRPNG with window.crypto.getRandomValues().