Description
mosquitto_passwd advertises and accepts argon2id as a hashing algorithm, but Argon2id password generation consistently fails in the official Alpine Docker images:
$ mosquitto_passwd -H argon2id -c /tmp/test esp17
Password:
Reenter password:
Adding password for user esp17
Error: Unable to hash password.
The alternative sha512-pbkdf2 implementation works correctly:
$ mosquitto_passwd -H sha512-pbkdf2 -c /tmp/test shauser
Password:
Reenter password:
Adding password for user shauser
Environment
Tested with the official images:
eclipse-mosquitto:latest
eclipse-mosquitto:2.1.1-alpine
eclipse-mosquitto:2.1.2-alpine
Interestingly I have only problem to generate new PW hashed existing hashes are processed by the mosquitto server as expected. So my guess is, that is something specific to mosquitto_passwd
Description
mosquitto_passwd advertises and accepts argon2id as a hashing algorithm, but Argon2id password generation consistently fails in the official Alpine Docker images:
The alternative sha512-pbkdf2 implementation works correctly:
Tested with the official images:
eclipse-mosquitto:latest
eclipse-mosquitto:2.1.1-alpine
eclipse-mosquitto:2.1.2-alpine
Interestingly I have only problem to generate new PW hashed existing hashes are processed by the mosquitto server as expected. So my guess is, that is something specific to
mosquitto_passwd