Comparison
Encoding, encryption and hashing solve three different problems
All three turn readable text into something unreadable, and that shared appearance is behind a great many security incidents. The question that separates them is simple: who can get the original back, and what do they need in order to do it.
Side by side
| Encoding | Encryption | Hashing | |
|---|---|---|---|
| Reversible | By anyone | With the key | Never |
| Needs a secret | No | Yes | No |
| Output length | Grows with input | Grows with input | Always the same |
| Purpose | Safe transport | Confidentiality | Verification |
| Example | Base64, URL encoding | AES | SHA-256 |
The short answer
Base64 is encoding and offers no protection whatsoever, so a password stored that way is a password stored in plain text with extra steps. A Caesar cipher is encryption with a key small enough to try every value by hand, which makes it a puzzle rather than a protection. And hashing is the right answer for a password precisely because nothing, including you, can turn it back.
In more detail
Base64 in a config file protects nothing
It looks unreadable, which is exactly why it gets used to store credentials, and it is reversible by anyone in one step. A password stored as Base64 is a password stored in plain text with an extra keystroke in front of it. If a value must live in a file, it needs encryption with a key kept elsewhere.
Why a Caesar cipher is a puzzle
There are twenty-five possible shifts, so every one can be tried by hand in under a minute. It is a useful way to understand what a key is and it is not protection against anybody who wants the message. The same reasoning applies to any scheme whose key space is small enough to enumerate.
Hashing is the right answer for a password precisely because it is one-way
A system that can show you your own password can be made to show it to somebody else. Storing a hash means nobody holds the password, including whoever runs the service. The slow, memory-hard functions - bcrypt, scrypt, Argon2 - exist because a fast hash lets an attacker with the database try billions of guesses a second.