mirror of
https://github.com/hilch/Bcrypt.cpp.git
synced 2026-08-27 19:56:33 +02:00
ce8a29b13eab749b90e7f0d071ebdc9d4c986cc4
Bcrypt.cpp
A c++ wrapper around bcrypt (origin: Open BSD) password hashing
How to use
Here an example how to use this wrapper class
#include "bcrypt.h"
#include <iostream>
int main(){
std::string password = "test";
std::string hash = BCrypt::generateHash(password);
std::cout << BCrypt::validatePassword(password,hash) << std::endl;
std::cout << BCrypt::validatePassword("test1",hash) << std::endl;
return 0;
}
Languages
C++
85.5%
C
13.5%
CMake
1%