Thanks guys, This looks like just what I was looking for.
Richard.
Thanks Wei![snip]
To go with the patch, I've added a base32 class based on the hex class. It works like the old one, except that it defaults to upper case. You can use lower case via a parameter, just like hex. I've only tested it a little, but it seems to work fine.
