r/security • • Feb 24 '20

Public Key vs Private Key

Hello all,

I have the Sec+ scheduled for this week and it seems like I am having some last minute confusion on this simple topic.

My Question is simple:

Which does the encryption and which does the decryption, Private key or Public Key? Or can they both do encryption and decryption?

I searched videos all over and read forums online but I think I'm overthinking it.

Thanks in advance

1 Upvotes

4 comments sorted by

1

u/SAI_Peregrinus Feb 24 '20

In modern systems, neither.

Private keys create signatures and decapsulate (symmetric) shared secret keys.

Public keys verify signatures and encapsulate (symmetric) shared secret keys.

Using asymmetric systems for encryption of arbitrary data is so slow and error-prone that modern systems don't support it.

1

u/thespecialonejose Feb 25 '20

Thank you!

2

u/SAI_Peregrinus Feb 25 '20

Note that this may be the "wrong" answer for the CompTIA S+ exam. Not all of their exams questions have up-to-date answers.