Last active
April 29, 2020 16:36
Revisions
-
rafaelsq revised this gist
Apr 29, 2020 . 2 changed files with 23 additions and 9 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ #!/bin/bash echo "limon" > encdec.dec echo "Encrypt" openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 10000 -salt -in encdec.dec -out encdec.enc ls encdec.* # encdec.enc encdec.dec rm encdec.dec ls encdec.* # encdec.enc echo "Decrypt" openssl enc -aes-256-cbc -md sha512 -pbkdf2 -d -in encdec.enc -out encdec.dec ls encdec.* # encdec.enc encdec.dec cat encdec.dec # limon This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +0,0 @@ -
rafaelsq created this gist
Nov 14, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ $ echo "limon" > file.txt $ openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 10000 -salt -in file.txt -out file.encoded $ ls file.txt file.encoded $ openssl -aes-256-cbc -md sha512 -pbkdf2 -d -in file.encoded -out new_file.txt $ ls file.txt file.encoded new_file.txt $ cat new_file.txt limon