Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Openssl encrypt decrypt

14 Jul 2022 »

https://unix.stackexchange.com/questions/209571/how-to-use-output-from-openssl-encryption-routines-in-a-pipe

tar czf - test | openssl enc -k testkey > test.enc
cat test.enc | openssl enc -d -k testkey > test.tgz
cat test.enc | openssl enc -d -k testkey | tar xzvf - -C test2/

with split

tar czf - test | openssl enc -k testkey | split - -b 1M -d lala-split
cat lala-split* | openssl enc -d -k testkey | tar xzvf - -C test2/

Using asymmetric