':type password: str
:rtype: str'

def hash_password(self, password):

    if (not password.startswith('sha512|')):
        password = ('sha512|%s' % sha512_crypt.encrypt(password))
    return password
