Closed evil-user closed 2 years ago
I think you'd want hash_secret_raw
for that?
@hynek i want to use argon2 as key derivation function will hash_secret_raw be suitable for such use
Argon2 is a key-derivation library, but I'm not comfortable answering such a general question. I would take it to https://crypto.stackexchange.com or the Argon2 authors.
Hi @hynek can output from argon2.low_level.hash_secret_raw(secret: bytes, salt: bytes, time_cost: int, memory_cost: int, parallelism: int, hash_len: int, type: argon2.low_level.Type, version: int = 19) → bytes¶ be used as cryptographic key?