2019-12-26 17:28:14 +01:00
2019-12-26 17:28:14 +01:00
2019-12-26 17:42:10 +01:00

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;
}
S
Description
No description provided
Readme
82 KiB
Languages
C++ 85.5%
C 13.5%
CMake 1%