-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a utility to encrypt and decrypt files in the browser #4064
base: main
Are you sure you want to change the base?
Conversation
<form> | ||
<label> | ||
Password: | ||
<input id="password" type="text" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change type to "password" so if someone's demoing this they don't inadvertently display the password?
22c099b
to
6bc1d18
Compare
Some intermediate changes in the latest push:
I'll push up some more stuff later that'll move this tool onto its own page that doesn't import any other Javascript. I think there's also some consideration around whether and how we could protect this page from other JS injection attacks. My naive first thoughts:
|
Changes proposed in this pull request:
This PR adds a client-side tool that allows users to select files, enter a password, and download an encrypted copy of that file. Similarly, users can select an encrypted file, enter the password, and download a decrypted copy of it. This tool does not exchange any information with any servers anywhere – it uses the Web Crypto native web API to do all of its cryptography in the browser.
Direct link to the tool in preview
security considerations
tk,tk - Probably want to bounce this off the cloud.gov Pages team and/or AO to ensure that this doesn't violate anything about that system. Since all data resides on the user's computer and is never stored by cgPages, it seems like this should be fine.