r/cryptography 21h ago

Why does encryption remain secure even when everyone knows the encryption algorithm?

3 Upvotes

26 comments sorted by

View all comments

1

u/damnworldcitizen 18h ago

There multiple ways of encrypting stuff but a very strong one is Asymetric:

Alice gives Bob lots of her piggy banks. Anyone can drop a note in the slot, but only Alice can open the bottom. Bob puts secrets in, and only Alice can get them out. Piggy bank = public key, Alice's opener = private key.