Hash and digitally sign text using public/private key pairs. Hash Text (OpenSSL) 1# SHA-256 hash 2echo -n "Hello, World!" | openssl dgst -sha256 3echo -n "Hello, World!" | openssl sha256 4 5# SHA-512 hash 6echo -n "Hello, World!" | openssl dgst -sha512 7 8# Hash file 9openssl dgst -sha256 …
Read MorePGP/GPG signature operations for files, emails, and git commits. Generate GPG Key 1# Interactive key generation 2gpg --full-generate-key 3 4# Quick generation (Ed25519) 5gpg --quick-generate-key "Your Name <email@example.com>" ed25519 sign,cert 2y 6 7# Batch generation 8cat > gpg-batch <<EOF …
Read More