Skip to content

question on defaults for argon2 #4

Answered by frankie567
84adam asked this question in Q&A
Discussion options

You must be logged in to vote

The defaults are actually pulled directly from Argon2 implementation:

def __init__(
self,
time_cost: int = argon2.DEFAULT_TIME_COST,
memory_cost: int = argon2.DEFAULT_MEMORY_COST,
parallelism: int = argon2.DEFAULT_PARALLELISM,
hash_len: int = argon2.DEFAULT_HASH_LENGTH,
salt_len: int = argon2.DEFAULT_RANDOM_SALT_LENGTH,
type: argon2.Type = argon2.Type.ID,
) -> None:

Which are defined there, and corresponds to the "low memory" profile of the RFC:

https://github.com/hynek/argon2-cffi/blob/0805dbdded04dc3c4bc8573236c80be50ff30113/src/argon2/profiles.py#L30-L38

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@84adam
Comment options

@frankie567
Comment options

@84adam
Comment options

@84adam
Comment options

Answer selected by 84adam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3 on May 03, 2024 14:30.