Category : argon2-ffi

I’m trying to hash passwords using the C++ cryptography library Botan. I’ve tried testing out the library using the code below: #include <iostream> #include <string> #include <botan/argon2.h> #include <botan/system_rng.h> int main() { Botan::System_RNG rng; std::string password = "cool_password"; std::string generated_hash = Botan::argon2_generate_pwhash(password.c_str(), password.length(), rng, 1, 4000, 1); std::cout << generated_hash << "n"; } but the ..

Read more