01 / 11
Hide the contents, not the method
Turning text you do not want read into a form nobody can read is encryption. The original is the plaintext, what comes out is the ciphertext, and turning it back is decryption.
What decides how it changes is the key. Use the same method with a different key and the ciphertext that comes out is something else entirely.
The surprise here is that the method itself is published to the world. Anyone can read how AES or RSA does its arithmetic. The only thing kept secret is the key.
Try to protect something by hiding the method and you have to build a new one the moment it leaks — and worse, nobody can ever check whether it was safe. Use a method that survives being published and attacked, and hide only the key. That is the basic stance of cryptography.
plaintext -> [encrypt] -> ciphertext ^ keyciphertext -> [decrypt] -> plaintext