For Jruby 1.8 mode we need to implement pbkdf2 ourselves