On 9/28/20 11:12 PM, Jacqueline Jolicoeur wrote:
Simply Text File encryption is suitable too to hide some info from plain text
files I have.
You can encrypt text files simply using tools in the base system.
EXAMPLES
Edit, encrypt, and erase:
$ vi file.txt
$ openssl aes-256-cbc -a -iter 100000 -in file.txt -out file.txt.enc
$ rm -P file.txt
Restore, and edit:
$ openssl aes-256-cbc -d -a -iter 100000 -in file.txt.enc -out file.txt
$ vi file.txt
SEE ALSO
openssl(1), rm(1)
Hmmm, very interesting idea.
It is also possible to invoke external commands on vi(1) buffer and
replace the content by it's output.
For example:
$ vi
# Write a few words or so
# To encrypt, run
:%!openssl aes-256-cbc -e -a -iter 100000 -pass 'pass:123'
# To decrypt, run
:%!openssl aes-256-cbc -d -a -iter 100000 -pass 'pass:123'
although I coundn't find a workaround for entering the password from
standard input, It should be doable, I guess.