Wednesday 26 February 2014

Save your file with passwd protected.

server1:/tmp # touch testenc


server1:/tmp # echo "hi I am a line" > testenc


server1:/tmp # cat testenc
hi I am a line


server1:/tmp # openssl bf -salt -in ./testenc > ./testenc1
enter bf-cbc encryption password:
Verifying - enter bf-cbc encryption password:


server1:/tmp # cat testenc1
Salted__°îøÐýÉÉQÝly¶ïÑ^±oþjõserver1:/tmp #



server1:/tmp # openssl bf -d -in ./testenc1 >./testenc
enter bf-cbc decryption password:


server1:/tmp # cat testenc
hi I am a line

No comments:

Post a Comment