Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Mosquitto's sha512-pbkdf2 password file format #17

Closed
halfgaar opened this issue Nov 7, 2022 · 2 comments
Closed

Support Mosquitto's sha512-pbkdf2 password file format #17

halfgaar opened this issue Nov 7, 2022 · 2 comments

Comments

@halfgaar
Copy link
Owner

halfgaar commented Nov 7, 2022

TODO:

  • Implement.
  • Add warning in man page that with thousands or millions of clients, purposefully slow hashing algorithms can be a problem, because it may require hours for all clients to connect.

Example:

wiebe:$7$101$oW4vum9VREb/0aH6K3ge7kY9u26JboPDpF+9SKjd0fdz6SXidJ9n+TtBbg5n0ImfM/LkIEn6BZxT78Wn6Uzgvw==$Sc31amckhadG9Sd7/qTR8L+ROxljBLCMTrFj/Isb0rikvolsWnucdfDDY3bcIk03Nm/ymzfenE7LuTtgbz3wkA==
@halfgaar
Copy link
Owner Author

Add warning in man page that with thousands or millions of clients, purposefully slow hashing algorithms can be a problem, because it may require hours for all clients to connect.

That point is actually not (that) relevant in this case. Contrary to bcrypt, which can take 100 ms, a quick test showed 10000 calls with Mosquitto's 101 iterations took 0.7 s.

Fix merged in master, pending new version release.

@halfgaar
Copy link
Owner Author

Fixed with release 0.13.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant