Password library: Adding hash() and verify() methods.