What's the recommended Bcrypt C implementation

2019-02-16 21:57发布

问题:

There's at least two Bcrypt implementations in C out there:

  • The original: http://bcrypt.sourceforge.net/
  • Openwall's: http://www.openwall.com/crypt/

Which one should I use as the basis for a new project? Note that I have no need for backwards compatibility, so my choice will rest solely on whichever implementation is considered more up-to-date and maintained. Also, I'm curious which one is used as the base for most non-C language bindings.

回答1:

The last release of bcrypt was done back in 2002. The mailing list carries just a few messages per year, most of which are never answered. It seems like that project has been dead for quite some time.

Openwall's latest version, OTOH, was released in 2011, so I'd look at that implementation first.