CYBER LIBRARY
Explore the bootcamp
Security essentialsBeginner

Cryptography

Understand encryption, hashing, and digital signatures through a software-update example, with clear guidance on keys and trust.

4 min readUpdated 12 Oct 20268 connections
Markdown

Start with the security question

Cryptography uses mathematical algorithms and keys to help protect information. Different tools address different goals. Encryption can protect confidentiality. Cryptographic hashes help compare data without comparing every byte directly. Digital signatures allow verification of a signature under a public key and help detect changes to signed information.

These mechanisms are related, but they are not interchangeable. Before choosing an algorithm, describe the problem: must an unauthorized reader be unable to understand a stored file, must a downloader detect a changed file, or must a device verify who signed a software update? A clear question makes the choice easier.

Three jobs in one software update

Imagine a fictional application delivering an update. Transport encryption protects the connection between the download service and the device. A published checksum may help the device detect accidental corruption. A verified digital signature can establish that the update was signed by a key the device trusts and that the signed content has not changed.

The checksum alone does not establish the publisher's identity. If an attacker can replace both the download and its checksum on the same compromised page, the two will agree. The signature's usefulness also depends on how the device acquired the trusted verification key and whether the signing key remains protected.

Encryption, hashing, and digital signatures address different questions about information.Encryption, hashing, and digital signatures address different questions about information. Open full-size diagram ↗

Keys connect mathematics to operations

Symmetric encryption uses a shared secret key for the relevant encryption and decryption operations. Asymmetric cryptography involves a public and private key pair. Real protocols often combine several mechanisms rather than choosing one family for every job.

The algorithm can be public; the required secret material must remain protected. Operational questions quickly become central: Who can retrieve the key? Where is it stored? How is access recorded? What happens when an employee leaves or a key may have leaked? Key management explains those responsibilities.

Consider an encrypted archive stored beside a text file containing its decryption key. The encryption may be mathematically sound, yet someone who can read both files can recover the contents. This illustrates a system design problem rather than a failure of encryption itself.

Encoding is a different operation

Base64 represents bytes as text so they can travel through systems expecting textual data. It requires no secret. Reversing that representation is routine decoding, not breaking encryption. A value that looks unreadable to a person is not necessarily protected.

Cryptographic hashing is also different from reversible encryption. A plain hash is not a general-purpose way to keep a short, predictable secret confidential. Password storage requires a design intended for passwords, including appropriate salts and a suitable password hashing scheme. Avoid treating every function that produces scrambled-looking output as the same tool.

How to learn safely

For a first exercise, compute a file's hash, edit one character, and compute it again. Observe the result, then ask where the expected hash would need to come from for the comparison to be trustworthy. This builds a useful distinction between detecting a difference and proving an origin.

For production software, use maintained cryptographic libraries and established protocols appropriate to the requirement. Inventing a custom combination can introduce weaknesses that are hard to recognize in ordinary testing. Continue with Symmetric encryption, Cryptographic hashing, and Key management to understand the parts separately.

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

NIST: Cryptographic Standards and GuidelinesNIST: Cryptography
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

9 notes · 14 connections
100%
Cryptography · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (9)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.