Implemented password hashing API