blake3 is not callable
16def get_password_token(length=44) -> str:
17 chars = string.ascii_letters + string.digits + string.punctuation
18 password = "".join(secrets.choice(chars) for _ in range(length))
19 hasher = blake3()20 hasher.update(bytearray(password.encode("utf-8")))
21 hasher.update(bytearray(config.PASSWORD_SALT.encode("utf-8")))
22 return str(b64encode(hasher.digest())[:43])
blake3 is not callable
7
8
9def get_password_hash(passwd: str) -> str:
10 hasher = blake3()11 hasher.update(bytearray(passwd.encode("utf-8")))
12 hasher.update(bytearray(config.PASSWORD_SALT.encode("utf-8")))
13 return str(b64encode(hasher.digest())[:43])
Description
An object being called has been inferred to a non callable object. This is an error.