https://github.com/japrozs/cpp-bcrypt
A cpp port of the bcrypt javascript library
https://github.com/japrozs/cpp-bcrypt
bcrypt cpp hash port
Last synced: 11 months ago
JSON representation
A cpp port of the bcrypt javascript library
- Host: GitHub
- URL: https://github.com/japrozs/cpp-bcrypt
- Owner: japrozs
- Created: 2022-02-15T07:55:35.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T07:56:09.000Z (almost 4 years ago)
- Last Synced: 2025-01-09T01:05:00.423Z (about 1 year ago)
- Topics: bcrypt, cpp, hash, port
- Language: C++
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cpp-bcrypt
A cpp port of the javascript bcrypt library.
## Usage
```cpp
#include
#include
int main(){
std::string hash = bcrypt::hash("this is the string", 10); // hash 16 times
std::cout << hash << "\n"; // $2a$10$T52Pgdtc43ikySun8/X7L.KzygvwjoCPraRag/kmd2ifP8qMuCvwW
return EXIT_SUCCESS;
}
```