Encryption

CLI & GUI Workflows for Data Protection

πŸ” GPG (Linux CLI)

CommandPurpose
gpg --gen-keyCreate a new key pair
gpg --list-keysView existing keys
gpg -e -r [user] file.txtEncrypt file for recipient
gpg -d file.txt.gpgDecrypt file
gpg --export -a [user]Export public key

πŸͺŸ BitLocker (Windows GUI)

ActionPurpose
Control Panel > BitLocker Drive EncryptionEnable or manage encryption
Turn on BitLockerEncrypt selected drive
Save recovery keyBackup decryption key securely
Suspend protectionTemporarily disable encryption
Manage TPMView Trusted Platform Module settings

🧊 VeraCrypt (Cross-platform GUI)

ActionPurpose
Create VolumeBuild encrypted container or partition
Mount VolumeAccess encrypted data
Use KeyfilesEnhance security with external keys
Hidden VolumeCreate nested encrypted space
BenchmarkTest encryption performance

🌐 TLS & Certificates

Tool/CommandPurpose
openssl req -new -x509 -days 365 -key server.key -out cert.crtCreate self-signed certificate
openssl s_client -connect host:443Test TLS connection
Certificate Manager (Windows)View and manage installed certs
Let’s EncryptFree SSL/TLS certificates for web servers
nginx/apache configApply certs to web services