Skip to content

Support django pbkdf2 #45

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)

Activity

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

    area/apiServer-side API — Go services, gRPC/Connect, command/queryarea/authAuthentication & authorization — OIDC, SAML, SCIM protocols

    Type

    No type

    Fields

    Priority

    Low

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions