Added a fixed hash_pbkdf2 function