Open clach04 opened 1 year ago
Consider compatibility with:
Data is encrypted and decrypted in the browser using 256bit AES in Galois Counter mode.
As I've been working on OpenSSL support in:
Test data for OpenSSL:
U2FsdGVkX18NXhFhTlAyvM2jXPu+hhsT344TvO0yLYk=
with password:
password
To avoid raw text being sent (for example, http instead of https, or don't trust storage on a server (but some how trust is being delivered...)). Ideally something symmetric.
[ ] encrypt server side support using https://github.com/clach04/openssl_enc_compat/ (rather than needing https://github.com/clach04/clipboard-confusion/tree/issues_14_client_side_decryption?tab=readme-ov-file#openssl-encrypted-aes-256-cbc-with-pbkdf2)
Optionally add support for server side? Using https://github.com/clach04/openssl_enc_compat Can already serve an encrypted file via Use bash shell process substitution:
and
Fernet maybe a good format to support, format/container is ascii-armored already. And supports expiration.
Compatibility with existing tools
openssl
Using CryptoJS - https://github.com/brix/crypto-js
crypto-es (port of crypto-js) https://github.com/entronad/crypto-es - MIT license
https://javascript.plainenglish.io/decrypting-openssl-data-with-javascript-38bbeebc34fc
openssl enc -aes-256-cbc -base64 -A < file.txt > secretmsg.b64
libsodium - varients
standford sjcl
custom
using Web Crypto API
openssl enc -aes-256-cbc -nosalt -e -in <input file name> -out <output file name> -K <key in Hex> -iv <iv in Hex>
unclear on license