basE91 encoding

I’m currently looking for the best way to encode and decode ASCII data into text-representive-binary. Nearly every programmer knows the common base64 method. The only problem with this is that it generates an overhead off about up to 30% and more. So i decided to have a look at basE91 found after some research in the www.

It’s pretty neat. The available PHP4 solution was easy to understand and so i have decided to give it a try and converted the source into an AS3 class. The result, i think, is really satisfying. The solution is quite fast and the decrease of the overhead is at least 10%. I have done a little test setup so you can try it at your own. Download BasE91 Source and .fla


About this entry