using symmetric encryption instead of key pair
This commit is contained in:
@@ -26,11 +26,11 @@ fi
|
||||
|
||||
# zip the content
|
||||
timestamp=$(date +%y%m%d)
|
||||
zip_file=${tmp_dir}/${timestamp}_gnupgKeys.zip
|
||||
zip_file=${tmp_dir}/${timestamp}_gnupgKeys.bibL2.zip
|
||||
zip -r "${zip_file}" "${src_dir}/" -i "*.asc"
|
||||
|
||||
# gpg encrypt the content
|
||||
gpg --encrypt --sign --recipient frode@klevstul.com "${zip_file}"
|
||||
# gpg : symmetric encrypt the content (as we will have no key pair when decrypting)
|
||||
gpg --symmetric "${zip_file}"
|
||||
|
||||
# delete the .zip file
|
||||
srm -v "${zip_file}"
|
||||
|
||||
Reference in New Issue
Block a user