Describe the bug
Entering a salt in hex or base64 for Argon2 results in a hash with a different salt.
To Reproduce
- Compute any Argon2 hash
- Setup any hexadecimal or base64 salt and specify the adequate encoding
- In the case of an hexadecimal salt, manually convert it to base64, since Argon2 outputs always display the salt in base64.
- Compare the salts : they do not match.
Link to reproduce
Expected behaviour
The salt from the input and the output should be the same.
Desktop :
- OS: Debian 12
- Browser: Firefox 115.14.0esr (64 bits)
- CyberChef version: 10.19.2
Additional context
Tweaking the parameters, salt size, salt base64 '=' padding does nothing significant.
However, using specific salts, sometimes the first bytes of the salts do match, and then look nothing alike : Link to reproduce