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

PasswordType + Argon2 make VARBINARY(4294967331) #259

item4 opened this issue Dec 10, 2016 · 2 comments

PasswordType + Argon2 make VARBINARY(4294967331) #259

item4 opened this issue Dec 10, 2016 · 2 comments


Copy link

item4 commented Dec 10, 2016

Passlib 1.7.0 support argon2 type hashing. I wanted to use it as Password hasing algorithm.

But sqlalchemy-utils generate VARBINARY(4294967331) field. It is too huge!

Size of PasswordType is depend on max_salt_size value and Argon2's max_salt_size in passlib impl is MAX_UINT32.

I think you write some notice on docs or make some arguments to PasswordType for limit salt size. Default salt size setting is 16 (argon2_cffi(passlib recommand it), passlib)

Copy link

ngdio commented Aug 28, 2017

I used a workaround

import passlib.hash
passlib.hash.argon2.max_salt_size = 16

in the file where the models are defined.

Copy link

Closing due to age.

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

No branches or pull requests

3 participants