Base64 encoders / decoders

Julian talks about Base64 encoding in Java. The classes he mentions are interesting, because they are indeed unsupported. As far as I've ever been able to tell though, this is just because they're not synchronised. Whether this is a big deal to you or not depends on your implementation I guess. The classes certainly seem to have been around long enough to be considered reasonably "safe" to use!

Interestingly when I searched for some more info, I discovered that the Network Security Services (NSS) for Java project, over at Mozilla also uses the Sun classes.

Anyone know any more?


  1. I've been using Robert Harder's Base64 classes. They work fine for my Domino fronting of an LDAP server.

Comments on this post are now closed.


I’m a software architect / developer / general IT wrangler specialising in web, mobile web and middleware using things like node.js, Java, C#, PHP, HTML5 and more.

Best described as a simpleton, but kindly. You can read more here.