Skip to content
All articles
November 9, 2026 12 min read

Encrypt, Hash, or Sign? Symmetric vs Asymmetric, Hashing, Salting and Key Stretching on Security+

Chris Rees

Chris Rees

25+ years in IT · Pluralsight author, 4.6/5 across 2,000+ ratings

Encrypt, Hash, or Sign? Symmetric vs Asymmetric, Hashing, Salting and Key Stretching on Security+
Skillthropicwww.skillthropic.com

Cryptography questions on Security+ look like vocabulary tests, and candidates who study them that way lose points they should have banked. The stem says a company must prove a contract came from a specific executive, or must store passwords so a stolen database is useless, or must send files to a partner that nobody else can read. Each answer list holds AES, SHA-256, RSA and a salted hash in some order. The algorithm names are not the hard part. The hard part is noticing which job the stem is asking for, because every cryptographic tool does exactly one job well and the distractors are the tools that do a neighbouring one.

Four jobs, four tools

Strip objective 1.4 down and it answers four questions. Can anyone else read this? Did it change? Did it change, and did it come from someone who holds our shared key? Who sent it, provably enough that they cannot deny it later? Each question has its own tool, and the property it delivers is the word the exam uses in the stem.

A four-row grid matching each cryptographic question to its tool, the key it uses and the property it delivers: keeping data secret uses encryption with a shared key or the recipient's public key for confidentiality; detecting change uses a hash with no key for integrity; detecting change from a known party uses an HMAC with a shared secret for integrity and authenticity; proving who sent it uses a digital signature, signed with the sender's private key and verified with the public key, for integrity, authenticity and non-repudiation NAME THE JOB, AND THE TOOL FOLLOWS The question The tool The key it uses What you get Can anyone else read it? keep it secret Encryption AES, ChaCha20, RSA a shared secret key, or the recipient's public key confidentiality Did it change on the way? anyone may check Hash SHA-256, SHA-3 no key at all integrity Did it change, and is it from someone who holds our key? HMAC hash plus a shared secret a shared secret key integrity and authenticity Who sent it, provably, so they cannot deny it later? Digital signature hash, then sign the hash sender's private key signs, the public key verifies integrity, authenticity, non-repudiation Only the bottom row proves who acted. A shared key can never prove which of its two holders used it.
Read the stem for the property, not the algorithm. "Prove it was not altered" is a hash; "prove who sent it" is a signature; "keep it private" is encryption.

The row candidates miss is the third one. An HMAC proves a message is unchanged and came from someone holding the shared key, and APIs use it constantly to sign requests. It cannot deliver non-repudiation, because both parties hold the same key and either could have produced the tag. When a stem adds "so the sender cannot later deny it," a shared key is disqualified and the answer is a digital signature.

Symmetric: one key, and it is fast

Symmetric encryption uses the same key to encrypt and decrypt. It is fast enough to encrypt a whole disk or a gigabit stream, which is why it carries virtually all bulk data. The algorithm to know is AES: a block cipher working on 128-bit blocks with 128, 192 or 256-bit keys. ChaCha20 is a stream cipher used heavily in TLS 1.3 on mobile devices that lack AES hardware acceleration. DES, with its 56-bit key, and 3DES are legacy: NIST has disallowed 3DES for new encryption, so on the exam they appear as the weak option to replace.

The weakness of symmetric crypto is not the math, it is the key. Both parties need the same secret before they can talk, and that secret has to travel somehow. It also scales badly. Every pair of people needs its own key, so a group of n needs n(n-1)/2 keys: 4,950 for 100 people. The exam asks this calculation directly, and the comparison is the point.

Asymmetric: two keys, slow, and it solves distribution

Asymmetric encryption gives each party a mathematically linked key pair. The public key can be published to the world; the private key never leaves its owner. What one key does, only the other undoes. One hundred people need 200 keys, two each, and nobody has to share a secret in advance.

The cost is speed. Asymmetric operations are orders of magnitude slower than AES, so nobody encrypts a file with RSA. Real systems use asymmetric crypto to agree on a symmetric key, then switch to that key for the data. This hybrid pattern is what happens in every TLS handshake, walked through step by step in the PKI post.

Diffie-Hellman is the key exchange the objectives name. It does not encrypt anything; it lets two parties compute the same secret over a public channel without sending it. When the key pairs are generated fresh for each session (the E for ephemeral in DHE and ECDHE), stealing the server's long-term private key later does not decrypt recorded traffic. That property is perfect forward secrecy, and TLS 1.3 makes it mandatory.

Algorithm Family Used for Exam status
AES (128/192/256) symmetric block bulk data at rest and in transit the default answer
ChaCha20 symmetric stream TLS on devices without AES hardware modern, strong
DES / 3DES symmetric block legacy systems weak; replace
RSA (2048+) asymmetric key transport, signatures strong at 2048 bits or more
ECC (e.g. P-256) asymmetric signatures, key agreement on constrained devices strong, small keys
DH / ECDHE key agreement establishing session keys ephemeral gives forward secrecy
SHA-256 / SHA-3 hash integrity, signatures, HMAC strong
MD5 / SHA-1 hash legacy checksums broken for collisions
bcrypt / PBKDF2 / Argon2 key stretching password storage the right answer for passwords

Key length is not comparable across families

A longer key means more possible keys and a harder brute-force search, but only within one algorithm family. A 256-bit ECC key and a 3,072-bit RSA key give roughly the same strength, about the same as a 128-bit AES key, according to NIST's key management guidance. The numbers differ because the attacks differ: brute force against AES, factoring against RSA, discrete logarithms against ECC. The exam uses this to set a trap. A stem that asks which provides the strongest protection, listing RSA-2048 beside AES-256, is not won by the bigger number. And ECC's small keys are exactly why it is the answer for IoT devices, smart cards and anything with tight power or bandwidth budgets.

Hashing, and what is built on it

A hash function takes input of any length and produces a fixed-length digest. It is one way: there is no key and no way to run it backwards. Change one bit of the input and roughly half the output bits flip. A good hash makes a collision, two inputs with the same digest, infeasible to find. MD5 lost that property years ago, and a practical SHA-1 collision was published in 2017. Both survive only as non-security checksums. SHA-256 and SHA-3 are the current answers.

Hashing on its own proves integrity to anyone who trusts the published hash, which is why download pages list SHA-256 values. Add a shared key and you have an HMAC. Encrypt the hash with a private key and you have a digital signature: the sender hashes the message and signs the hash; the receiver recomputes the hash and checks it against the signature using the sender's public key. A match proves the message is unchanged and that only the private-key holder could have signed it.

The same chained-hash idea is what the outline means by blockchain and an open public ledger: each block includes the hash of the one before, so altering an old record breaks every hash after it, and copies held by many parties make the tampering visible.

Exam tip: Keys have one rule per direction. To keep a message secret for a recipient, encrypt with the recipient's public key, so only their private key opens it. To sign, use the sender's private key, so anyone with the public key can verify. Stems that pair "sign" with a public key, or "encrypt for Bob" with Alice's private key, are distractors.

Salting and key stretching solve different problems

Password storage is where hashing most often goes wrong, and Security+ tests two separate fixes. A plain SHA-256 of each password has two weaknesses. Identical passwords produce identical hashes, so cracking one cracks every account that shares it, and an attacker can use a rainbow table, precomputed once, to reverse common passwords by lookup. And SHA-256 is designed to be fast, so one graphics card can test billions of guesses per second.

Three ways to store a password compared against three attacks: a plain hash gives identical hashes for identical passwords, falls to rainbow tables and allows billions of guesses per second on one GPU; a salted hash gives different hashes and defeats rainbow tables but still allows billions of guesses per second; a salted and stretched hash such as Argon2id or bcrypt gives different hashes, defeats rainbow tables and cuts guessing to thousands per second or fewer THREE WAYS TO STORE A PASSWORD, THREE ATTACKS Plain hash SHA-256(password) Salted hash SHA-256(salt + password) Salted and stretched Argon2id, bcrypt, PBKDF2 Two users with the same password A precomputed rainbow table Guesses per second on one GPU identical hashes crack one, get both different hashes each attacked separately different hashes each attacked separately works cracking becomes a lookup useless built without your salts useless built without your salts billions the hash is built to be fast still billions salt adds no work per guess thousands or fewer each guess costs time and memory Salting defeats precomputation. Only stretching slows the guessing itself, so a strong store needs both.
The middle column is the trap. A salted fast hash looks protected and still falls to an ordinary GPU running through a password list.

A salt is a random value generated for each password and mixed in before hashing. It is stored beside the hash and does not need to be secret. Its job is to make every hash unique, which kills rainbow tables and hides shared passwords. What it does not do is slow anyone down: with the salt in hand, an attacker can still test billions of guesses against each account.

Key stretching fixes the speed. Algorithms like PBKDF2 run the hash many thousands of times, bcrypt has a tunable cost factor, and Argon2id also demands a configurable amount of memory per guess, which blunts GPUs and custom hardware. A legitimate login pays a fraction of a second once. An attacker pays it for every guess, and the guessing rate drops by many orders of magnitude. Some systems also add a pepper, a secret value kept outside the database, so a stolen database alone is not enough to start guessing.

Where the encryption sits

Objective 1.4 also asks where encryption is applied, and the right level depends on the threat. Each level protects against a different loss.

Level What it covers The threat it answers
Full-disk the entire drive, including the OS; often TPM-backed (BitLocker, FileVault) a stolen or lost laptop
Partition / volume one partition or logical volume a shared machine where only one area holds sensitive data
File individual files or folders (EFS) files copied off a running system or shared with others
Database the whole database, often transparent data encryption stolen database files or backups
Record specific rows or columns, such as a card number field administrators and applications that should not see every field
Transport data in motion: TLS, IPsec, SSH, VPNs interception on the network

The trap is full-disk encryption on a running machine. Once the system is booted and unlocked, the disk serves decrypted data to anything running on it, so malware on a logged-in laptop sees plaintext. Full-disk encryption protects the device when it is off or stolen; file, database and record encryption keep protecting the data while the system runs. The hardware that holds the keys, the TPM, HSM, key management system and secure enclave, has its own home in the TPM and secure boot post.

Obfuscation rounds out the objective. Steganography hides data inside other data, such as an image. Tokenization swaps a sensitive value for a meaningless token that maps back only through a protected vault. Data masking shows a partial or altered value, such as the last four digits of a card. None of them is encryption, and the data protection post covers when each is the better choice.

What changes on SY0-801: In the draft objectives, cryptography moves from 1.4 to 1.3 and the list gets shorter. Key stretching, blockchain and the open public ledger are no longer named; steganography, tokenization and masking are folded into one word, obfuscation; and TPM, HSM, KMS and secure enclave become "tools." The cryptographic attacks (downgrade, collision, birthday) also leave Domain 2. The four-jobs model above carries straight across, and key stretching is still how passwords should be stored even where the exam stops asking. The full comparison is in the [SY0-701 vs SY0-801 post](/blog/security-plus-sy0-701-vs-sy0-801-whats-changing).

Four stems, decoded

  1. A firm must prove a signed contract came from its CFO, who later claims it was forged. Digital signature. Non-repudiation is the requirement, and only a private key that one person holds can provide it. An HMAC fails because the key is shared.
  2. A breached database stored unsalted SHA-256 password hashes; what most reduces the damage next time? A salted, stretched algorithm such as bcrypt or Argon2id. Salting alone stops rainbow tables but leaves fast guessing; encrypting the passwords is wrong because anything that can be decrypted can be stolen along with the key.
  3. A team of 50 wants each pair of members to communicate privately using only symmetric keys. How many keys? 1,225, from 50 × 49 ÷ 2. With asymmetric keys it would be 100.
  4. An analyst finds a credential in a script, written as a long Base64 string, and the developer says it is encrypted. It is not. Base64 is encoding, reversible by anyone with no key. Encoding is about format, encryption is about secrecy, and hashing is about integrity.

Key takeaways

  • Name the job before the algorithm. Secrecy is encryption, "unchanged" is a hash, "unchanged and from a key holder" is an HMAC, and "provably from this person" is a digital signature.
  • Symmetric is fast and hard to distribute; asymmetric is slow and solves distribution. Real systems use both: asymmetric to agree on a key, AES to move the data. Ephemeral Diffie-Hellman adds forward secrecy.
  • Key lengths only compare within a family. AES-128, RSA-3072 and ECC-256 are roughly equal, and ECC's small keys suit constrained devices.
  • Encrypt with the recipient's public key; sign with the sender's private key. Any other pairing is a distractor.
  • Salt makes every hash unique; stretching makes every guess expensive. Password storage needs both, which means bcrypt, PBKDF2 or Argon2id, not a fast hash.

Cryptographic solutions are objective 1.4 of Security+ SY0-701 Domain 1, General Security Concepts, 12% of the exam, and the same material becomes objective 1.3 in SY0-801, where Domain 1 grows to 16%. It is the foundation the PKI and data protection objectives build on. Work every Domain 1 topic with our free Security+ Domain 1 study guide.

#SecurityPlus #SY0701 #SY0801 #Cryptography #Encryption #Hashing #PasswordSecurity #ExamPrep #InfoSec #CyberSecurity

Free · Security+ Domain 1

Read a full Security+ guide free before you decide

The complete General Security Concepts guide, every page and every practice question, is free. Not a preview: it is the same PDF paying customers download. Domain 1 gains four points in the SY0-801 draft, and every guide will be updated to 801 at no cost when CompTIA finalizes the objectives.

  1. Find your gapsA free readiness quiz scores you domain by domain.
  2. Study what's on the testWork through every objective, with practice questions.
  3. Book it with confidenceSchedule the exam when you're scoring well in every domain.

Share this article

Keep reading

Security+ deep dives

Policy, Standard, Procedure, Guideline: The Governance Hierarchy, the Seven Named Policies, and Who Owns the Data on Security+

Objective 5.1 hands you a sentence and four document types, and the sentence never says which one it is. Two questions classify any governance document: is it mandatory, and how specific is it. The full hierarchy with an example chain, the seven policies the outline names and the scenario that identifies each, the four standards, the three procedure families, external considerations from local to global, governance structures, and the owner, controller, processor and custodian roles the exam keeps swapping.

Read
Security+ deep dives

MSA, SOW, SLA, BPA, NDA: The Third-Party Risk Alphabet, and Which Document Answers Which Question

Your vendors are your attack surface, and Security+ Domain 5 tests whether you know the paperwork that manages them. Objective 5.3 end to end: the vendor lifecycle from due diligence to offboarding, the agreement stack (master agreement, statements of work, service levels, business partners, non-disclosure, memoranda), right-to-audit and rules of engagement, questionnaires and ongoing monitoring, and supply chain analysis.

Read
Security+ deep dives

Establish, Deploy, Maintain: Secure Baselines, Hardening Targets, BYOD vs. COPE vs. CYOD, and WPA3 on Security+

Objective 4.1 is the widest bullet in the biggest domain, and it hides its questions in verbs and ownership: which baseline step failed when settings drifted, which mobile model gives the least control, why WPA3 ends the offline handshake attack, which application control stops which flaw. The baseline lifecycle, hardening emphasis by device class, site surveys and heat maps, MDM and deployment models, 802.1X with RADIUS, and the application security checklist, decoded the way the exam asks them.

Read

Follow Skillthropic

Keep learning between study sessions

The same exam-focused teaching, in smaller pieces, wherever you scroll.

Enjoyed this? Get the AI security news that matters.

Join The AI Security Brief for the top AI security news, plus what's important to the C-suite. Free, straight to your inbox.

No spam. Unsubscribe anytime.