using symmetric encryption instead of key pair

This commit is contained in:
committer@tuxwarrior
2026-03-17 20:19:32 -05:00
parent 06a9e5bc13
commit 0b3b5fa722

View File

@@ -26,11 +26,11 @@ fi
# zip the content # zip the content
timestamp=$(date +%y%m%d) 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" zip -r "${zip_file}" "${src_dir}/" -i "*.asc"
# gpg encrypt the content # gpg : symmetric encrypt the content (as we will have no key pair when decrypting)
gpg --encrypt --sign --recipient frode@klevstul.com "${zip_file}" gpg --symmetric "${zip_file}"
# delete the .zip file # delete the .zip file
srm -v "${zip_file}" srm -v "${zip_file}"