pwhash, password hashing in java

March 28th, 2009

As promised, here is the code to a Java implementation of the principles of password hashing that I outlined in my previous post. I'll put it on a proper project page later on, but for now the full distribution can be downladed as pwhash-0.9.zip, the binary jar can be found as pwhash-0.9.jar and the source code with documentation can be found at PasswordHasher.java.

Included in the distribution is also a Base64 implementation, Base64.java, that I wrote. The fact that Sun hasn't included it in Java from version from the very beginning is a mystery to me. My implementation might not be the fastest or the most robust one around but it is quite readable and preforms okay.


One Response to “pwhash, password hashing in java”

  1. How to best protect your users’ passwords at Noa’s blog on March 30, 2009 20:40

    [...] I wrote this post I have published the code for two implementations of these recommendations, in Java and Ruby. Filed under Cryptography, Geeky [...]

Trackback URI | Comments RSS

Leave a Reply

Name (required)

Email (required)

Website

Speak your mind