Skip to content

Support django pbkdf2 #45

@schettn

Description

@schettn

Currently passwap does not support Django pbkdf2 hashes.

Example: pbkdf2_sha256$100000$eWZncb8EO0lM$HddIrL/Yuvg91JrroQWqLk4kIJRzD25olN2+0UM8MoQ=

  1. Issue: zitadel/passwap does not support the Django format. Ref:

    passwap/pbkdf2/pbkdf2.go

    Lines 27 to 35 in f5db279

    const (
    IdentifierSHA1 = "pbkdf2"
    IdentifierSHA224 = IdentifierSHA1 + "-sha224"
    IdentifierSHA256 = IdentifierSHA1 + "-sha256"
    IdentifierSHA384 = IdentifierSHA1 + "-sha384"
    IdentifierSHA512 = IdentifierSHA1 + "-sha512"
    Prefix = "$" + IdentifierSHA1
    )
    . This leads to a "internal server error" when logging in.
  2. Issue: Just updating the format from pbkdf2_sha256$100000$eWZncb8EO0lM$HddIrL/Yuvg91JrroQWqLk4kIJRzD25olN2+0UM8MoQ= to pbkdf2-sha256$100000$eWZncb8EO0lM$HddIrL/Yuvg91JrroQWqLk4kIJRzD25olN2+0UM8MoQ= results in a password incorrect when logging in.

Originally posted by @schettn in zitadel/zitadel#8491 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    🔖 Ready for dev

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions