itty-bitty icon indicating copy to clipboard operation
itty-bitty copied to clipboard

Encryption example doesn't work. Redirects to itty bitty homepage

Open trholding opened this issue 3 years ago • 5 comments

The following encryption example doesn't work for me. Redirects to itty bitty homepage:

echo -n 'hello world' | gzip -9 | openssl enc -aes-256-cbc | base64 | xargs -0 printf "https://itty.bitty.app//data:text/plain;cipher=aes;gzip64,%s\n"

trholding avatar May 18 '22 17:05 trholding

So.... this should work now. give it a try?

alcor avatar May 30 '22 16:05 alcor

oh, note, it should be:

echo -n 'hello world' | gzip -9 | openssl enc -aes-256-cbc | base64 | xargs -0 printf "https://itty.bitty.app/#/data:text/plain;cipher=aes;gzip64,%s\n"

It needs the hashtag

alcor avatar May 30 '22 16:05 alcor

Thank you I'll check and update here.

trholding avatar May 30 '22 18:05 trholding

"Decryption Error - Incorrect password?"

stet avatar Mar 01 '23 23:03 stet

@alcor Thanks and sorry that I couldn't reply.

I can confirm @stet 's issue

Try on this link:

https://itty.bitty.app/#/data:text/plain;cipher=aes;gzip64,U2FsdGVkX18+AKzjU3PklFa+NkPEujzpAvlQQQmfnHFAgu1NoPsetgdOf33F8Jyd

Password: test

Leads to decryption error

echo -n 'hello world' | gzip -9 | openssl enc -aes-256-cbc | base64 | xargs -0 printf "https://itty.bitty.app/#/data:text/plain;cipher=aes;gzip64,%s\n"
enter AES-256-CBC encryption password:
Verifying - enter AES-256-CBC encryption password:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
https://itty.bitty.app/#/data:text/plain;cipher=aes;gzip64,U2FsdGVkX18+AKzjU3PklFa+NkPEujzpAvlQQQmfnHFAgu1NoPsetgdOf33F8Jyd

trholding avatar Mar 02 '23 09:03 trholding