Skip to content

Password hashing functions for RabbitMq 3.13.7 #12747

Closed Answered by lukebakken
ElenaShlykova asked this question in Questions
Discussion options

You must be logged in to vote

However we did not found defailts if a salt is provided? If so, how is randomness ensured?

It is clearly documented on our website:

https://www.rabbitmq.com/docs/passwords#this-is-the-algorithm

RabbitMQ is open-source, and you have the ability to see exactly how passwords are dealt with:

https://github.com/search?q=repo%3Arabbitmq%2Frabbitmq-server+Salt&type=code

generate_salt() ->
Salt = rand:uniform(16#ffffffff),
<<Salt:32>>.

https://www.erlang.org/doc/apps/stdlib/rand.html#uniform/1

If you need to see how rand:uniform/1 is implemented in Erlang:

https://github.com/search?q…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lukebakken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants