Skip to content

PasswordType + Argon2 make VARBINARY(4294967331) #259

@item4

Description

@item4

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions