1. Home
  2. Explore
  3. Computer Science
  4. Cryptography and Data Security

Study methods

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

Cryptography and Data Security

Cryptography and Information Security

Cryptography uses mathematical techniques to protect information and secure communication. Encryption and hashing serve different purposes, while symmetric and asymmetric cryptography describe two ways of using keys.

Encryption

Encryption transforms readable information, called plaintext, into an unreadable form, called ciphertext. A key is used to encrypt the information, and an authorized recipient uses the appropriate key to decrypt it.

Encryption primarily protects confidentiality: someone who intercepts the ciphertext should not be able to understand the original message without the required key.

Hashing

Hashing converts data into a fixed-length value called a hash or digest. A hash is designed to be difficult to reverse, so it is not normally used to recover the original information.

Hashing helps verify integrity: if the data changes, its hash should also change. Systems can compare hashes to check whether data has been altered. Unlike encryption, hashing does not conceal data, and it does not use a decryption key.

Symmetric Cryptography

Symmetric cryptography uses the same secret key to encrypt and decrypt information.

  • It is generally efficient for protecting large amounts of data.

  • The communicating parties must share the key securely.

  • If an unauthorized person obtains the key, that person may be able to decrypt information protected with it.

Asymmetric Cryptography

Asymmetric cryptography uses a mathematically related pair of keys: a public key and a private key.

  • The public key can be shared openly; the private key must remain protected.

  • Information encrypted with a recipient’s public key can generally be decrypted only with the matching private key.

  • This approach can help parties communicate securely without first sharing a secret key through a secure channel.

How the Concepts Work Together

Encryption, hashing, and key systems provide complementary protections:

  • Encryption helps keep information confidential.

  • Hashing helps detect changes and verify integrity.

  • Symmetric cryptography efficiently encrypts data using a shared secret.

  • Asymmetric cryptography supports secure key exchange and communication between parties who do not already share a secret.

Secure communication systems may combine these techniques—for example, using asymmetric cryptography to establish a shared secret and symmetric cryptography to protect the subsequent exchange of data.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent