clach04 / clipboard-confusion

Pure Python 2 and 3 in-memory, single document pastebin, with optional clipboard support with some qrcode support
Apache License 2.0
2 stars 0 forks source link

add client side decryption and encryption #14

Open clach04 opened 1 year ago

clach04 commented 1 year ago

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.

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:

cat /etc/os-release |openssl enc -e -aes-256-cbc -in - -out - -base64 -salt -pbkdf2 -iter 10000 | \
    ./clipboardconfusion.py /dev/stdin

and

cat /etc/os-release |openssl enc -e -aes-256-cbc -in - -out - -base64 -salt -pbkdf2 -iter 10000  -pass pass:password | \
    ./clipboardconfusion.py /dev/stdin

Fernet maybe a good format to support, format/container is ascii-armored already. And supports expiration.

Compatibility with existing tools

clach04 commented 11 months ago

Consider compatibility with:

clach04 commented 10 months ago

As I've been working on OpenSSL support in:

clach04 commented 10 months ago

Test data for OpenSSL:

U2FsdGVkX18NXhFhTlAyvM2jXPu+hhsT344TvO0yLYk=

with password:

 password