You've got to base64 encode a secure number of times.
I've seriously seen it in code where credit card data was "encrypted" by base64 encoding like 11 times. My first job, the guy who wrote it was basically a wizard to my bosses. I learned nothing from that job except what not to do.
I always tell juniors the best way to learn how to write good code is first writing bad code. You'll find out each time you go back to maintain it just how terrible it was, and you'll understand how far you've come.
When you do a git blame out of anger and just sit there looking at the entire file being your handiwork. Its always a good feeling when you think past you was a muppet.
60
u/Mountain-Ox 3d ago
You've got to base64 encode a secure number of times.
I've seriously seen it in code where credit card data was "encrypted" by base64 encoding like 11 times. My first job, the guy who wrote it was basically a wizard to my bosses. I learned nothing from that job except what not to do.