Update README.md

This commit is contained in:
Christoph Hilchenbach
2019-12-26 17:33:10 +01:00
committed by GitHub
parent f68da11b6e
commit ce8a29b13e

View File

@@ -1,2 +1,21 @@
# Bcrypt.cpp
A c++ wrapper around bcrypt password hashing
A c++ wrapper around bcrypt (origin: Open BSD) password hashing
## How to use
Here an example how to use this wrapper class
```cpp
#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;
}
```