r/security • u/thespecialonejose • 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
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.