argon2-password-hash-provider icon indicating copy to clipboard operation
argon2-password-hash-provider copied to clipboard

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

Open woodyc79 opened this issue 4 months ago • 1 comments

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

woodyc79 avatar Feb 14 '24 12:02 woodyc79

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;

Ramblurr avatar Feb 22 '24 10:02 Ramblurr