api/utils/encrypt.py
def validate_argon2(encrypted_str: str, data: str) -> bool:
    """Function for validating an argon2 hash."""
    try:
        return h.verify(encrypted_str, encrypt(data))
    except VerifyMismatchError:
        return False
Function for validating an argon2 hash.
Function for validating an argon2 hash.
Function for validating an argon2 hash .
def validate_argon2(encrypted_str: str, data: str) -> bool:
    try:
        return h.verify(encrypted_str, encrypt(data))
    except VerifyMismatchError:
        return False
def validate_argon2 ( encrypted_str : str , data : str ) -> bool : try : return h . verify ( encrypted_str , encrypt ( data ) ) except VerifyMismatchError : return False
Function for validating an argon2 hash.
Function for validating an argon2 hash .
"""Function for validating an argon2 hash."""
encrypted_str
str
data
str