Should the password in the option be the plain password?
Should the password in the database be the hashed value?
The table schema is id, username, password, salt, iteraction, hash_algorithm. That is the schema from the documentation. The column salt, iteraction, hash_algorithm can not be null by the documentation.
Thank you for your inquiry and for seeking clarification on the password configurations in our C# application and ESE database.
To address your questions:
Should the password in the option be the plain password?
Yes, that is correct.
Should the password in the database be the hashed value?
Yes, it should be stored as a hashed value in the database.
I would like to provide additional information based on our documentation. If the interaction is not specified, the default value is 100, and if the hash_algorithm is not specified, SHA256 is used by default. Therefore, if you did not explicitly specify these values, the system defaults would have been applied.
Considering the defaults, I understand that replicating the same hash might be challenging. To assist you better, could you please share the parameters you used to generate the password hash?
There is only hivemq-ese-helper.jar file under the $HIVEMQ_HOME/extensions/hivemq-enterprise-security-extension/helper/jvm. I am not with my company computer now, with MacBook, I can not open the file, so I could not check the example.
I wanted to provide additional information about the ESE Helper tool. Its main functionalities include generating password hashes or creating insert statements for the ESE database.
If the tool is not currently on your laptop, you can easily obtain it by downloading the HiveMQ broker distribution from HiveMQ Download. Once downloaded, unzip the package and locate the ESE Helper tool in $HIVEMQ_HOME/extensions/hivemq-enterprise-security-extension/helper.
If you encounter any uncertainties, you can test connectivity by attempting to connect with the same username and password using an alternative client, such as MQTT.fx (Download – Softblade) or MQTT-CLI (Home - MQTT CLI).
If you have any further questions or need assistance, please don’t hesitate to ask. I’m here to help.
to provide you with an accurate solution, could you please provide more details about the specific challenges you’re encountering? What are you trying to do regarding the hashed password in docker, what is your expectation and what is actual result.
Looking forward to helping you resolve this matter.