Authentication with bcrypt hashed password

后端 未结 1 1868
萌比男神i
萌比男神i 2021-01-22 02:54

In my C++ application, user must login in order to use the application. The user login data are taken from phpBB 3.1 database, which uses for password hashing bcrypt. However, I

相关标签:
1条回答
  • 2021-01-22 03:27

    BCrypt is really not as common as it could be, but there is a Stackoverflow question on What's the recommended Bcrypt C implementation? that will point you to Openwall's crypt_blowfish.

    Given a solid C implementation, you need only a wrapper for your C++ code to be good to go!

    I would also note that the single most useful Google result is, in fact, this question. In particular, the Crypto++ library still has BCrypt on their planned features list.

    Don't forget to increase the work factor above 12 or 14 when you use it!

    Once you have a working implementation, if you'd like to give a reasonable open source license, I'd be happy to include it in my Github repository to provide an alternative to PBKDF2 examples!

    0 讨论(0)
提交回复
热议问题