Files

15 lines
265 B
C++
Raw Permalink Normal View History

2019-12-26 21:44:20 +01:00
#ifndef BCRYPT_H
#define BCRYPT_H
#include <string>
2021-12-23 20:16:28 +01:00
namespace bcrypt {
2019-12-26 21:44:20 +01:00
2019-12-27 16:27:39 +01:00
std::string generateHash(const std::string & password , unsigned rounds = 10 );
2021-12-23 20:16:28 +01:00
2019-12-27 16:27:39 +01:00
bool validatePassword(const std::string & password, const std::string & hash);
2019-12-26 21:44:20 +01:00
}
#endif // BCRYPT_H