phxql / argon2-jvm

Argon2 Binding for the JVM
GNU Lesser General Public License v3.0
330 stars 32 forks source link

Pepper/secret implementation? #83

Closed ebreeze closed 3 years ago

ebreeze commented 3 years ago

As far as I know Argon2 also allows a pepper in the algorithm itself, called the "secret". Is it possible to implemnt the setting this parameter as well?

phxql commented 3 years ago

Should be possible (secret is in the context) by using the argon2*_ctx(argon2_context *context); methods. This needs a bigger refactoring of the existing code.

suniastar commented 3 years ago

I've tried to fix this issue with my recent pull request #86 as I would need support for secrets and associated data as well. Maybe someone can take a look at it.

phxql commented 3 years ago

Thanks for your work, i've merged the PR!