Encrypt and decrypt files using symmetric and asymmetric GPG encryption.
echo 'CONFIDENTIAL: Server root password is S3cur3P@ss!' > secret.txt
gpg --symmetric --cipher-algo AES256 secret.txt
ls -la secret.txt*
shred -vfz -n 3 secret.txt && rm secret.txt
gpg --decrypt secret.txt.gpg
gpg --gen-key
gpg --export --armor student@cyber-lab.local > public_key.asc
When would you use symmetric vs. asymmetric encryption?