1. Home
  2. Explore
  3. Computer Science
  4. Cryptography Fundamentals

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Cryptography Fundamentals

Speaker 1Speaker 2

Cryptography Fundamentals

11:48
0:00-11:48
  1. Anna

    Welcome to our episode on the fundamentals of cryptography, part of the CompTIA Security Plus guide to network security fundamentals. Today we’ll define cryptography, compare hashing with symmetric and asymmetric algorithms, explore how cryptography is used, and examine its limitations and common attacks.

  2. Corey

    And the central idea is straightforward: cryptography protects information by transforming readable data, called plaintext, into an unreadable form called ciphertext. Encryption performs that transformation, while decryption turns the ciphertext back into readable data.

  3. Anna

    A key controls those encryption and decryption processes. Without the correct key, the protected information remains locked. That is why cryptography is useful not only in specialized security systems, but also in everyday activities involving private digital information.

  4. Corey

    There’s another technique worth separating from encryption: steganography. Steganography hides the existence of data itself, often by embedding a message inside an image, audio file, or video file.

  5. Anna

    One approach is to place the hidden information in unused portions of a file, such as header fields or spaces between sections of metadata. The goal is for the hidden data to remain undetected, adding another layer of security.

  6. Corey

    Cryptography provides several important protections. Confidentiality ensures that only authorized people can see information, integrity helps ensure that data arrives unchanged, and authentication confirms the identity of the sender.

  7. Anna

    Non-repudiation adds accountability by helping ensure that someone cannot deny an action after taking it. Obfuscation, sometimes discussed with security through obscurity, makes data or its protections difficult for people without the necessary knowledge to understand.

  8. Corey

    Here’s a quick example. If Leila encrypts a document so that only people who have been given the key can view it, the protection she has provided is confidentiality. The key point is that encryption restricts access to authorized individuals.

  9. Anna

    Now let’s organize the main cryptographic tools. Hash algorithms create a unique-looking code for data, symmetric algorithms use the same key to encrypt and decrypt, and asymmetric algorithms use a related public-and-private key pair.

  10. Corey

    Let’s start with hashing. A hash is like a digital fingerprint: it produces a digest that represents the contents of data. You can compare the digest later to check whether the data is still unchanged and genuine.

  11. Anna

    Hashing is one-way. Once the data has been hashed, the hash is not reversed to reveal the original information. Secure Hash Algorithm, or SHA, is one example of a secure hash family, while RIPEMD, MD, and Whirlpool are other examples mentioned in this material.

  12. Corey

    That makes hashing different from encryption. Encryption is designed so authorized users can decrypt the data with the proper key, whereas hashing creates a digest used primarily for checking data rather than recovering the original.

  13. Anna

    Symmetric cryptography is the next category. It uses one shared secret key for both encryption and decryption, like a single key that locks and unlocks a treasure chest.

  14. Corey

    The advantage is efficiency: symmetric cryptography is faster and works well for encrypting large amounts of data. The difficulty is key distribution, because both the sender and receiver need the same secret key and must keep it secure.

  15. Anna

    Examples include the Advanced Encryption Standard, or AES, and the Data Encryption Standard, or DES. The material also mentions Blowfish and Twofish as strong symmetric algorithms.

  16. Corey

    A knowledge-check question asks which type uses the same key to encrypt and decrypt. The answer is symmetric cryptography. The sender and receiver must share that secret key.

  17. Anna

    Several forms of algorithms illustrate different ways data can be processed. A one-time pad combines a message with a random key, and that key must be used only once. Reusing it would violate the basic rule highlighted by the technique.

  18. Corey

    A stream cipher processes information like a stream, replacing or transforming individual characters or pieces of data as they are handled. A block cipher instead processes a whole block of data at once.

  19. Anna

    A sponge function absorbs an input and produces an output of variable length. The source compares it to combining ingredients into a smoothie: the input can vary in amount, and the resulting output can also be produced at a chosen length.

  20. Corey

    Asymmetric cryptography addresses the key-sharing challenge by using two keys: a public key that can be shared and a private key that is kept secret by its owner.

  21. Anna

    The public key is available for others to use, while the private key is known only to its owner. This arrangement lets people share information and protect secrets without distributing one common secret key to everyone.

  22. Corey

    The two keys can work in different directions depending on the purpose. The key pair supports secure sharing and can also support processes such as verifying that information came from the expected owner.

  23. Anna

    RSA and elliptic curve cryptography, or ECC, are examples. RSA uses large prime numbers to create a difficult mathematical problem, while ECC uses smaller keys based on elliptic-curve mathematics.

  24. Corey

    Because ECC can provide this approach with smaller keys, the material describes it as faster and well suited to modern devices. RSA and ECC therefore offer different mathematical approaches to protecting digital secrets.

  25. Anna

    Digital signatures are another application. The Digital Signature Algorithm, or DSA, creates a special signature that helps verify the sender, supports non-repudiation, and helps demonstrate that the message was not changed during transmission.

  26. Corey

    For exchanging secret keys, the material lists Diffie-Hellman, or DH, ephemeral Diffie-Hellman, DHE, and elliptic-curve Diffie-Hellman, or ECDH. It also highlights perfect forward secrecy, or PFS, as a method associated with keeping exchanged keys protected.

  27. Anna

    Cryptography can be applied at many layers. File and file-system cryptography can protect individual files or groups of files. Examples of tools include GNU Privacy Guard, or GnuPG, AxCrypt, Folder Lock, and VeraCrypt.

  28. Corey

    Microsoft Windows also provides Encrypting File System, or EFS, which integrates encryption and decryption with the file system so the process can be seamless and transparent to the user.

  29. Anna

    Full-disk encryption, or FDE, protects all data on a hard drive, including the operating system and system files. BitLocker is an example in Microsoft Windows, and it can encrypt the entire disk, including the Windows registry.

  30. Corey

    Volume-level encryption is narrower: it protects a specific section of a drive called a volume. A volume is accessible to users and has an associated file system, so this approach can protect selected sections instead of the entire disk.

  31. Anna

    Database encryption can use a plug-in method, where an encryption module is added to the database management system. Another approach is transparent data encryption, or TDE, where encryption and decryption are handled inside the database engine.

  32. Corey

    TDE is easier to manage in the material’s comparison because it does not require additional packages or changes to the database engine or its code. It is presented as a straightforward and efficient way to protect database data.

  33. Anna

    Cryptography can also be built directly into hardware, including USB drives and standard hard drives. With hardware-based encryption, data saved to a device can be encrypted automatically, requiring minimal user intervention.

  34. Corey

    Some advanced USB devices allow administrators to control access remotely. They may be able to prevent unauthorized access, disable a user’s access, or command the device to erase its stored data through a self-destruct sequence.

  35. Anna

    Self-encrypting drives protect data written to them. When the device powers up, the drive and host device perform authentication. If authentication fails, the drive can deny access or delete its encryption keys, making the stored data permanently unreadable.

  36. Corey

    A hardware security module, or HSM, is an external device designed for cryptographic operations. It includes key generation and key storage, and it can accelerate both symmetric and asymmetric encryption.

  37. Anna

    A trusted execution environment is a secure area inside a computer that protects the confidentiality and integrity of code and data. The Trusted Platform Module, or TPM, is a recognized standard for this kind of secure area.

  38. Corey

    A TPM can provide services such as random-number generation and support asymmetric encryption, including the creation of public and private keys. On Apple and Android devices, a similar secure area is called a Secure Enclave.

  39. Anna

    Blockchain is another use of cryptography. It is a shared, unchangeable record used to record transactions and track assets across a business network.

  40. Corey

    A group of computers regularly agrees on the true state of the distributed ledger, so participants maintain the same information. A public blockchain is open to anyone, a private blockchain restricts participation, and a federated blockchain combines public and private characteristics.

  41. Anna

    Cryptography is especially important for low-power devices and applications requiring fast response times, but those environments create a limitation. These devices have limited resources, while cryptographic algorithms require time and energy.

  42. Corey

    That creates a balancing act: security must be strong enough to protect the device, but the cryptographic work cannot overload its limited capabilities. Choosing an approach means balancing protection with performance.

  43. Anna

    Attackers can also target cryptographic systems in several ways. In known-ciphertext attacks, they analyze encrypted data to look for patterns. Statistical tools can help reveal patterns in ciphertext that might expose the original data or the encryption key.

  44. Corey

    Downgrade attacks take a different approach. Instead of directly breaking the strongest protection, an attacker tries to force the system to switch from a secure mode to an older, less secure mode.

  45. Anna

    Collision attacks target hashing. An attacker attempts to create two different messages that produce the same hash value. If successful, the two messages have collided, even though their contents are different.

  46. Corey

    A birthday attack uses the birthday paradox as an analogy. The material notes that with 23 people in a room, there is about a 50 percent chance that two share a birthday. In cryptography, the idea is that finding two different messages with the same hash can happen sooner than someone might intuitively expect.

  47. Anna

    Quantum computing creates a future challenge. Traditional computers use bits that are either zero or one, while quantum computers use qubits, which can represent zero and one at the same time.

  48. Corey

    That capability lets quantum computers perform certain calculations very quickly. In particular, they could factor large numbers more efficiently, threatening some of the codes used today to protect digital information.

  49. Anna

    The response is post-quantum cryptography: new security methods designed to remain safe against quantum computers. The goal is to protect information as computing technology develops.

  50. Corey

    One final knowledge check: what protects all data on a hard drive, including the installed operating system? The answer is full-disk encryption, or FDE, because it encrypts the entire disk rather than only selected files or volumes.

  51. Anna

    That means a stolen laptop’s files, folders, and system files remain encrypted and unreadable without the correct decryption key, even if someone removes the drive and connects it to another device.

  52. Corey

    To review the episode objectives, you should now be able to define cryptography, describe hash, symmetric, and asymmetric algorithms, list major ways cryptography is used, and explain important limitations and attacks.

  53. Anna

    For self-assessment, rate your confidence in each objective from one to five. A score of five means you feel fully confident, while a score below four suggests that reviewing the module and its related exercises would be useful.

  54. Corey

    The big picture is that cryptography supports confidentiality, integrity, authentication, non-repudiation, and other protections across files, databases, hardware, devices, communications, and distributed ledgers.

  55. Anna

    And secure systems still require awareness of limitations, key management, resource constraints, downgrade and collision attacks, and the future impact of quantum computing. Understanding both the strengths and weaknesses of cryptography is essential to protecting digital information.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent