This comment doesn't help the reader, especially since the Returns section tells us the same thing. A more useful description would be "Generates a hash corresponding to the given user's credentials."