pandashells
pandashells copied to clipboard
p.crypt improvement
I would like to make small modifications to the p.crypt
tool. I would like to allow it to create hex-encoded output, and I would like for it to be able to handle input/output from stdin/stdout like the rest of the tools. I have no idea why I didn't make piping the default interface to begin with so that it was consistent with the other tools. The relevant openssl commands would be
# encryption
cat file_to_encrypt.txt | openssl aes-256-cbc -a -salt > filte_to_encrypt.txt.crypt
cat filte_to_encrypt.txt.crypt | openssl aes-256-cbc -d -a -salt > cat recovered_file_to_encrypt.txt
The only real difference from what I have currently is the inclusion of the -a
flag, and the ability to read/write to stdin/stdout