Linux Cryptography Cheat Sheet

A Software › Linux cheat sheet in English by hlhlhl

Simple guide to cryptography

530 views 137 downloads 9 Aug 2026 History

OpenSSL

Command
Purpose
openssl version
Version
openssl rand -hex 16
Generate random data
openssl dgst -sha256 FILE
SHA-256 digest
openssl x509 -in cert.pem -text -noout
View certif­icate
openssl s_client -connect host:443
Inspect server certif­icate

Hashing

Command
Purpose
md5sum FILE
MD5 hash
sha1sum FILE
SHA-1 hash
sha256sum FILE
SHA-256 hash
sha512sum FILE
SHA-512 hash
sha256 sum -c file.s­ha256
Verify checksum

GPG

Command
Purpose
gpg --gen-key
Generate key
gpg -e FILE
Encrypt
gpg --list­-keys
List keys
gpg --verify FILE.sig
Verify signature

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.