This was written with a limited scope so it may not fit what you need.

Encoding - this will encode with base64_encode. Optionally you can select JSON encode, this will encode first with JSON and then with base64.

Decoding - this will decode with base64_decode. Optionally you can select JSON decode, this will decode with base64 first and then JSON.


Base64 Encode: Encode with JSON first and then Base64



Decode: Decode with Base64 and then JSON




Decoded