Category : argon2-ffi

we are trying to build a c++ project for which we have been provided a build.sh file. We are getting a linking error as shown below. 66%] Linking CXX executable ../bin/rdiscoveryd /usr/bin/cmake -E cmake_link_script CMakeFiles/rdiscoveryd.dir/link.txt –verbose=1 g++-7 -Wno-psabi -rdynamic CMakeFiles/rdiscoveryd.dir/src/discoveryd/r_discoveryd.cc.o CMakeFiles/rdiscoveryd.dir/src/discoveryd/r_riaps_actor.cc.o CMakeFiles/rdiscoveryd.dir/src/discoveryd/r_msghandler.cc.o CMakeFiles/rdiscoveryd.dir/src/discoveryd/r_dhttracker.cc.o CMakeFiles/rdiscoveryd.dir/src/utils/r_lmdb.cc.o CMakeFiles/rdiscoveryd.dir/src/discoveryd/r_validator.cc.o CMakeFiles/rdiscoveryd.dir/src/discoveryd/r_dhtdata.cc.o CMakeFiles/rdiscoveryd.dir/include/messaging/disco.capnp.c++.o -o ../bin/rdiscoveryd -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/home/ubuntu/Desktop/riaps-core-master/bin: -lczmq -lzmq -lopendht -lgnutls ..

Read more

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