Jump to content

base64_encode with custom character set?


soadlink

Recommended Posts

Hello,

I'm looking for a simple method to base64 encode any string, but with a custom character set as defined by me. For example if you look here about 1/8 of the way down (http://www.developer.com/java/other/article.php/3386271), you have the final characters based on the value, with your padding character being the =

I would like to be able to customize the final output characters, including the padding character. Hopefully there is an easy way to do this without having to re-write the entire base64 process, but if that's what has to be done I'll accept that.

Any ideas? Thanks
Link to comment
https://forums.phpfreaks.com/topic/35042-base64_encode-with-custom-character-set/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.