AP CSP public key vs symmetric encryption cheat sheet

A comprehensive study set comparing public key encryption and symmetric encryption, ideal for AP Computer Science Principles exam preparation.

NoraNewt·38 flashcards·38 questions
APcomputer_sciencecybersecurity
0
Known
1 / 38
0
Learning
Front

What is public key encryption?

Tap to flip
Back

A cryptographic system that uses two keys: a public key for encryption and a private key for decryption.

Tap to flip
Got it
Still learning

Quiz(38 questions)

Question 1 of 38

1. What does the public key in public key encryption primarily enable?

Terms in this Study Set(38)

Public Key Encryption(16)

What is public key encryption?

A cryptographic system that uses two keys: a public key for encryption and a private key for decryption.

Advantages of public key encryption

- Secure key distribution - No need for shared secrets - Digital signatures for authentication

True or False: Public key encryption is faster than symmetric encryption.

False. Public key encryption is generally slower due to complex algorithms.

Fill in the blank: In public key encryption, the __________ key is kept secret.

private

Public key example

Example: RSA (Rivest-Shamir-Adleman) is a widely used public key encryption algorithm.

How does key exchange occur in public key encryption?

Users share their public keys openly, while private keys remain confidential.

Cause → Effect: Using public key encryption leads to...

...increased security in communications, preventing unauthorized decryption.

Name a protocol that uses public key encryption.

Example: HTTPS uses public key cryptography for secure web communication.

What is the role of the public key?

It is used to encrypt data that only the corresponding private key can decrypt.

True or False: Public key encryption can provide both confidentiality and authentication.

True. It enables secure data transmission and verifies sender identities.

Public key vs. symmetric key encryption: Which is more secure?

Public key encryption is more secure in key distribution but often slower.

What is a digital signature?

A mathematical scheme for verifying the authenticity and integrity of a message or document using public key cryptography.

Fill in the blank: The __________ key is used to sign messages in public key cryptography.

private

What happens if a private key is compromised?

Confidentiality is lost; anyone can decrypt messages intended for the owner.

Examples of public key encryption in action

- Email encryption (PGP) - Secure online transactions (SSL/TLS)

Describe the key generation process.

Involves creating a pair of keys: a public key for encryption and a private key for decryption, often using algorithms like RSA.

Symmetric Encryption(12)

Define symmetric encryption.

A method where the same key is used for both encryption and decryption.

What is a key advantage of symmetric encryption?

Faster processing speed compared to asymmetric encryption.

True or false: Symmetric encryption requires two keys.

False. It only requires one key for both encryption and decryption.

List two common symmetric encryption algorithms.

- Advanced Encryption Standard (AES) - Data Encryption Standard (DES)

What is a key characteristic of symmetric encryption?

Uses the same key for both encryption and decryption.

True or false: Symmetric key size affects security directly.

True. Larger keys provide stronger security against brute-force attacks.

Fill in the blank: Symmetric encryption is generally ______ than public key encryption.

faster and less resource-intensive.

Name one common use case for symmetric encryption.

- Encrypting data at rest - Securing communication channels (e.g., TLS)

Comparison: Symmetric vs Public Key Encryption.

- Symmetric: One key, faster. - Public: Two keys, slower but more secure for key exchange.

What is a disadvantage of symmetric encryption?

Key distribution problem: Securely sharing the key among parties is challenging.

Provide an example of a situation that uses symmetric encryption.

Transmitting credit card information securely over the internet.

Encryption formula for symmetric encryption: E(x) = ?

E(x) = K ⊕ x, where K is the key and x is the plaintext.

Comparison of Encryption Methods(10)

Public key encryption vs. symmetric encryption

Public key uses two keys (public and private). Symmetric uses one key. - Public: slower, more secure for sharing. - Symmetric: faster, secure for bulk data.

True or False: Symmetric encryption requires two keys.

False. Symmetric encryption uses a single secret key for both encryption and decryption.

Use case for symmetric encryption?

Ideal for encrypting large volumes of data quickly, such as securing communication streams in a VPN.

Public key encryption is also known as...

Asymmetric encryption, because it uses a pair of keys: a public key for encryption and a private key for decryption.

Match the encryption type with its key length: 128-bit vs. 2048-bit

128-bit: Symmetric encryption. 2048-bit: Public key encryption, providing higher security.

Fill in the blank: Symmetric encryption is __________ than public key encryption.

faster, making it suitable for encrypting large data sets or streams.

Cause → Effect: What happens if a symmetric key is compromised?

All data encrypted with that key is vulnerable, leading to potential data breaches.

What is the primary security implication of public key encryption?

Even if the public key is known, it is computationally infeasible to derive the private key.

Example scenarios for using symmetric encryption?

Encrypting files on a hard drive, securing database contents, and VPN data transmission.

True or False: Public key encryption is faster than symmetric encryption.

False. Public key encryption is generally slower due to complex mathematical operations.

Questions in this Study Set(38)

1. What does the public key in public key encryption primarily enable?

A.Encrypting data
B.Decrypting data
C.Generating symmetric keys
D.Creating digital signatures

2. What does symmetric encryption primarily use for encrypting and decrypting data?

A.A single key
B.Two different keys
C.A public key
D.A hash function

3. What is the main difference between public key encryption and symmetric encryption?

A.Public key uses two keys, symmetric uses one key.
B.Public key is faster than symmetric encryption.
C.Symmetric encryption provides higher security than public key.
D.Public key encryption is only used for small data sets.

4. Which of the following is NOT an advantage of public key encryption?

A.Secure key distribution
B.Faster encryption speed
C.Digital signatures for authentication
D.No need for shared secrets

5. Which of the following is a common symmetric encryption algorithm?

A.RSA
B.AES
C.Diffie-Hellman
D.ECC

6. Which of the following is a common use case for symmetric encryption?

A.Securing emails.
B.Encrypting large data volumes quickly.
C.Distributing public keys.
D.Generating digital signatures.

7. True or False: Public key encryption requires both parties to share a private key.

A.True
B.False
C.Depends on the protocol
D.Only for digital signatures

8. True or False: Symmetric encryption is always slower than asymmetric encryption.

A.True
B.False
C.Only for large data sets
D.Depends on the algorithm

9. True or False: Public key encryption is also known as asymmetric encryption.

A.True
B.False
C.Depends on the context
D.Only in some countries

10. Fill in the blank: The __________ key is used to decrypt messages encrypted with the public key.

A.symmetric
B.public
C.private
D.shared

11. Which of the following is NOT a characteristic of symmetric encryption?

A.Uses the same key for both operations
B.More resource-intensive than asymmetric encryption
C.Faster processing speed
D.Requires two unique keys

12. What is the typical key length for symmetric encryption?

A.2048 bits
B.256 bits
C.128 bits
D.512 bits

13. Which of the following is a widely recognized public key encryption algorithm?

A.AES
B.DES
C.RSA
D.Blowfish

14. Which scenario best illustrates the use of symmetric encryption?

A.Exchanging emails securely using a public key
B.Encrypting a database containing personal information
C.Creating a digital signature for a document
D.Generating a secure password hash

15. Which is NOT a characteristic of public key encryption?

A.Requires two keys
B.Faster than symmetric encryption
C.More secure for sharing keys
D.Computationally infeasible to derive private key

16. What is the primary function of a digital signature in public key cryptography?

A.Encrypt messages
B.Verify message integrity and authenticity
C.Generate public keys
D.Decrypt data

17. What happens to the security of symmetric encryption as the key size increases?

A.Security decreases
B.Security remains the same
C.Security becomes stronger
D.Key size has no impact

18. What happens if a symmetric key is compromised?

A.Only future communications are affected.
B.All data encrypted with that key is vulnerable.
C.The key becomes invalid for further use.
D.No impact on the encrypted data.

19. Which of the following protocols utilizes public key encryption for secure communication?

A.FTP
B.SSH
C.SMTP
D.HTTP

20. Which of the following represents a disadvantage of symmetric encryption?

A.Requires high processing power
B.Complex key management
C.Inability to encrypt large files
D.Limited algorithm options

21. Fill in the blank: Symmetric encryption is __________ than public key encryption.

A.slower
B.more secure
C.faster
D.less efficient

22. What occurs if a private key is compromised?

A.Data remains secure
B.Only the public key is affected
C.Confidentiality is lost
D.The encryption algorithm fails

23. In the formula E(x) = K ⊕ x, what does K represent?

A.The encrypted data
B.The encryption algorithm
C.The key
D.The plaintext

24. Which of the following scenarios is best suited for symmetric encryption?

A.Sending a public key.
B.Encrypting a small text message.
C.Securing a large database.
D.Creating a digital certificate.

25. How do users exchange their public keys?

A.Through a secure channel
B.By digital signatures
C.Openly over insecure channels
D.Via physical delivery

26. What is the key reason for using symmetric encryption over asymmetric encryption in certain scenarios?

A.Greater complexity
B.Faster performance
C.Easier implementation
D.Better security for key exchange

27. True or False: The private key can be derived if the public key is known in public key encryption.

A.True
B.False
C.Only if additional data is available
D.Depends on the encryption algorithm

28. Which statement is true about the speed of public key encryption compared to symmetric encryption?

A.Public key encryption is faster
B.Both are equally fast
C.Public key encryption is slower
D.Symmetric encryption is more secure

29. Which of the following is a common use case for symmetric encryption?

A.Securing public key infrastructure
B.Encrypting files on a hard drive
C.Digital certificates verification
D.Creating a public key pair

30. Match the encryption type with its typical use: Encrypting files vs. securing communications.

A.Encrypting files - Symmetric encryption, Securing communications - Public key encryption
B.Encrypting files - Public key encryption, Securing communications - Symmetric encryption
C.Both use symmetric encryption
D.Both use public key encryption

31. What does a public key allow a user to do?

A.Decrypt any message
B.Encrypt messages for others
C.Sign messages
D.Access private data

32. What is a potential vulnerability associated with symmetric encryption?

A.Key exposure during transmission
B.No known algorithms exist
C.Inability to use short keys
D.Always requires multiple keys

33. In the context of public key cryptography, what is a key pair?

A.One public key and one symmetric key
B.Two public keys
C.A public key and its corresponding private key
D.Two private keys

34. Which statement best defines symmetric encryption in comparison to asymmetric encryption?

A.Uses two keys and is faster
B.Uses one key and is slower
C.Uses one key and is faster
D.Uses two keys and is more secure

35. Which of the following best describes the purpose of public key infrastructure (PKI)?

A.Generate symmetric keys
B.Manage public keys and certificates
C.Encrypt data
D.Decrypt messages

36. Cause → Effect: The use of public key encryption leads to...

A.Faster data transfer
B.Increased security in communication
C.Decreased trust in parties
D.Elimination of digital signatures

37. What is the primary purpose of using a private key in public key cryptography?

A.To encrypt data
B.To sign messages
C.To store public keys
D.To verify identities

38. Which of the following statements best describes the relationship between public key encryption and digital signatures?

A.Public key encryption can create digital signatures that confirm sender authenticity.
B.Digital signatures are created using symmetric encryption methods.
C.Public key encryption does not support digital signatures for verifying messages.
D.Digital signatures can only be generated with a private key and not a public key.

Related Study Sets

Create Your Own Study Set

Upload a PDF, paste your notes, or describe a topic – AI generates flashcards, quizzes and more in seconds.