Replace deprecated pbkdf2 implementation