PHP Developers Network
http://forums.devnetwork.net/

Class for binary to text encoding (Base32 and more)
http://forums.devnetwork.net/viewtopic.php?f=50&t=94989
Page 1 of 1

Author:  André D [ Mon Feb 09, 2009 11:25 pm ]
Post subject:  Class for binary to text encoding (Base32 and more)


Author:  André D [ Mon Feb 09, 2009 11:26 pm ]
Post subject:  Re: FixedBitNotation class for binary to text encoding


Author:  Mordred [ Thu Feb 19, 2009 9:15 am ]
Post subject:  Re: Class for binary to text encoding (Base32 and more)

I haven't read the code in detail, so I won't comment on that, just a quick note that you the pad character can be not in the encoding alphabet - is this intentional, or did you just forget to check.
A second point is go check the google chart API and provide shortcut implementations for their encodings (I reckon this will be a popular feature)

Author:  André D [ Thu Feb 19, 2009 12:52 pm ]
Post subject:  Re: Class for binary to text encoding (Base32 and more)


Author:  André D [ Thu Feb 19, 2009 3:38 pm ]
Post subject:  Re: Class for binary to text encoding (Base32 and more)

I may have misinterpreted what you were saying; sorry. You are right if you are saying that I don't check to make sure that the pad character is not in the alphabet. I left that up to the user, but maybe I should add a check. Good point.

Author:  Chris Corbyn [ Fri Feb 20, 2009 12:40 am ]
Post subject:  Re: Class for binary to text encoding (Base32 and more)

Just curious, is there such a thing as base128 that uses all 7 bits available for all US-ASCII characters?

Not that it would look very neat with all those WS/control characters in there :P

Author:  André D [ Fri Feb 20, 2009 4:13 pm ]
Post subject:  Re: Class for binary to text encoding (Base32 and more)


Author:  André D [ Fri May 17, 2013 7:43 pm ]
Post subject:  Re: Class for binary to text encoding (Base32 and more)

Since I first posted this code, it has founds its way into a few open source projects, which is great.

This class, renamed Base2n, is now maintained in a Git repository:

Check the repository if you want the latest version, under the MIT license.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/