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

Argon2 Variant only numeric input allowed, no ARGON2i, ARGON2d or ARGON2id #19

Open
woodyc79 opened this issue Feb 14, 2024 · 1 comment

Comments

@woodyc79
Copy link

In the documentation there is mentioned that you can choose one of the following versions:ARGON2i, ARGON2d or ARGON2id (default: ARGON2id)

But currently one can only input numeric values:
image

Used: argon2-password-hash-provider-2.0.1.jar and KeyCloak 23.0.5

Kind regards,
Christian

@Ramblurr
Copy link

I'm not sure why the original author of this plugin did it this way, but the integers correspond to the enums in

[org.bouncycastle.crypto.params.Argon2Parameters])(https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/crypto/params/Argon2Parameters.java#L9-L11)

    public static final int ARGON2_d = 0x00;
    public static final int ARGON2_i = 0x01;
    public static final int ARGON2_id = 0x02;

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

No branches or pull requests

2 participants