<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hello,</div><div><br></div><div>I've played with pbkdf2 function for same purpose. It is based on hmac from crypto library. </div><div><br></div><div><a href="https://github.com/fogfish/hash">https://github.com/fogfish/hash</a><br><br>Someone, might disagree about pbkdf2 due to some of it's features but it works for me (tm) </div><div><br>- Dmitry</div><div><br><div>Sent from my iPhone</div></div><div><br>On 30 May 2016, at 17:38, Richard Jonas <<a href="mailto:richard.jonas@erlang-solutions.com">richard.jonas@erlang-solutions.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hey guys,<div><br></div><div>we are implementing user registration and password checking functionality and using bcrypt for password hashing. During registration and also during login we need to compute the hashes of the passwords. The problem is that bcrypt is serializing requests even when I choose nif or port mechanism.</div><div><br></div><div><a href="https://github.com/chef/erlang-bcrypt">https://github.com/chef/erlang-bcrypt</a></div><div><br></div><div>With nif a message queue is instantly built when multiple users log in (compute hashes for match password). With a pool size+port implementation, the message queue building has just deferred a bit.</div><div><br></div><div>Is there any alternative to creating bcrypt-like hashes? For me it seems that this library cannot be scaled well. Or have I missed something?<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Richard Jonas</div><div>Erlang Solutions Hungary Kft</div><div><br></div><div>Address:</div><div>  Riverpark Office K.32</div><div>  Közraktár street 32. 3/1.</div><div>  1093 Budapest</div><div>  Hungary</div><div>Phone/fax:</div><div>  +36-1-7000-654</div></div></div>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>