Skip to content

PasswordType + Argon2 make VARBINARY(4294967331) #259

Closed

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)

Activity

  1. ngdio commented on Aug 28, 2017

    @ngdio

    I used a workaround

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

    in the file where the models are defined.

  2. kurtmckee commented on Oct 25, 2022

    @kurtmckee
    Collaborator

    Closing due to age.

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

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