Custom implementation of base64 functions

I didn't know what to do...

Posted by debuss-a on 2nd May 2018

Sometimes, some days, out of boredom and will to learn, you start to do useless things, like implementing custom base64 encode/decode functions.

I was inspired by the Wikipedia description of the base64 algorithm and I just started to implement it myself in PHP. It is useless, but maybe not so much since PrestaShop Validator does not allow the use of base64 functions, here is a way to still use it unofficially.