import hashlib


def isrightpwd(pwd, encrypted_pwd):
    """
    Make Sure The Password(pwd) Is The Right One.
    Judge By The SHA512 Encrypted Password(encrypted_pwd).
    """
    if hashlib.sha512(pwd.encode('utf-8')).hexdigest() == encrypted_pwd:
        return True
    else:
        return False