Cryptography 101

📘 Cryptography 101: What Every Security Professional Should Know

By James K. Bishop, vCISO | Founder, Stage Four Security

🔍 Why Crypto Still Matters

Cryptography isn’t just for privacy—it’s the engine behind modern trust. It powers authentication, secure communication, software integrity, and identity verification. But too often, crypto is treated as a black box: “just use AES and TLS and move on.”

This post breaks down the foundational cryptographic concepts that every security professional—not just cryptographers—needs to understand. We’ll keep the math light and focus on how encryption, hashing, and digital signatures work in the real world.

🔐 Encryption Basics: Symmetric vs. Asymmetric

Symmetric Encryption (Shared Secret)

  • Same key for both encryption and decryption
  • Fast, efficient—ideal for bulk data (e.g., AES)
  • Used in disk encryption, VPNs, TLS session encryption

Asymmetric Encryption (Public/Private Key Pairs)

  • One key encrypts (public), the other decrypts (private)
  • Used for secure key exchange, email encryption, digital signatures
  • Slower, but enables trust between untrusted parties (e.g., RSA, ECC)

In TLS, for example, asymmetric encryption is used during the handshake to securely exchange a symmetric key, which is then used for the session.

🔁 Hashing: One-Way Functions for Data Integrity

Cryptographic hash functions (like SHA-256 or BLAKE2) take an input and produce a fixed-size output. Good hash functions are:

  • Deterministic: Same input = same output
  • Irreversible: Can’t derive the input from the hash
  • Collision-resistant: No two inputs produce the same hash

Hashes are used for integrity checks, password storage (with salts), signing, and in blockchain structures like Merkle trees.

✍️ Digital Signatures: Proving Authenticity

Digital signatures combine hashing and asymmetric encryption to ensure that data is:

  • Authentic: Signed by the claimed sender
  • Untampered: Altered messages fail verification

Example: In email (PGP), the sender signs a hash of the message using their private key. Recipients verify the signature using the sender’s public key.

In software security, digital signatures validate code, containers, firmware, and documents (think DocuSign or app store downloads).

🧠 Real-World Applications

  • TLS: Uses asymmetric crypto to exchange keys and symmetric crypto to protect sessions
  • Disk encryption: Uses symmetric AES with OS-level key management
  • JWT tokens: Signed using HMAC (symmetric) or RSA (asymmetric) for API authentication
  • Blockchain: Uses hashes for block integrity and digital signatures for transaction trust

Cryptography isn’t just about hiding data—it’s about verifying who you’re talking to and trusting that your data wasn’t tampered with in transit or at rest.

🛑 Crypto Misuse Destroys Security

Most real-world crypto failures don’t come from broken algorithms—they come from misuse:

  • Hardcoded keys in code or firmware
  • Using ECB mode instead of CBC or GCM (for AES)
  • Failing to validate certificates or expiration dates
  • Misconfigured TLS (e.g., outdated ciphers, self-signed certs)

Knowing what to look for—and what to avoid—is as important as knowing how crypto works.

📚 Terms You Should Know

  • PKI: Public Key Infrastructure—how certificates and trust chains work
  • HMAC: Hash-based Message Authentication Code—used in APIs, JWTs
  • Salt: Random data added to passwords before hashing to prevent rainbow table attacks
  • Nonce/IV: Unique random values added to encryptions to ensure uniqueness

📣 Final Thought

Cryptography isn’t magic—and it isn’t optional. You don’t need to invent your own algorithms, but you do need to understand how they’re applied, validated, and sometimes dangerously misused.

Need help reviewing crypto architecture, PKI deployments, or secure key handling? Let’s talk.

Scroll to Top