Simplify pbkdf2 lua implementation.