I've heard a lot of people say that the Web Crypto API is not very safe. For example: https://tonyarcieri.com/whats-wrong-with-webcrypto, Problems with in Browser Crypto. However, I'm looking to use the Web Crypto API for a completely different purpose.
I want to create a static website (html, css and javascript files) on server run by myself which will allow me to open the website url, choose a file, and then encrypt the file with a password using PBKDF2 and AES-GCM.
Are there any security issues I would run into?
file://
scheme - one easy solution is to serve the static page locally and then access it via127.0.0.1
, eg. usingpython -m http.server
- one prob with this approach is you may then not be able to launch HTTPS webrequests to other servers, so for a longer-term solution you will likely need a locally configured https server, eg gist.github.com/DannyHinshaw/a3ac5991d66a2fe6d97a569c6cdac534