Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash() got an unexpected keyword argument 'salt' #158

Closed
EngineerHus opened this issue Oct 12, 2023 · 1 comment
Closed

hash() got an unexpected keyword argument 'salt' #158

EngineerHus opened this issue Oct 12, 2023 · 1 comment

Comments

@EngineerHus
Copy link

EngineerHus commented Oct 12, 2023

Hi,
Can someone guide me regarding why I am getting the following error: hash() got an unexpected keyword argument 'salt'?

The code looks as follows:

import argon2
from argon2 import profiles

def hash_password(password, parallelism, iterations, memorySize, hashLength,):
    params = {"parallelism": parallelism, "iterations": iterations, "memorySize": memorySize, "hashLength": hashLength}
    hasher = argon2.PasswordHasher.from_parameters(profiles.CHEAPEST)
    p = hasher.hash(password, salt=b"123456789")

The argon2id version I am using is 21.3.0

Thanks

@EngineerHus
Copy link
Author

needs a version of 23.1.0 minimum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant