diff options
Diffstat (limited to 'doc/examples/passhash.cpp')
-rw-r--r-- | doc/examples/passhash.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/passhash.cpp b/doc/examples/passhash.cpp index 1e4c8c505..586c28c3f 100644 --- a/doc/examples/passhash.cpp +++ b/doc/examples/passhash.cpp @@ -5,7 +5,7 @@ */ #include <botan/botan.h> -#include <botan/passhash.h> +#include <botan/passhash9.h> #include <iostream> #include <memory> @@ -30,11 +30,11 @@ int main(int argc, char* argv[]) Botan::AutoSeeded_RNG rng; std::cout << "H('" << argv[1] << "') = " - << Botan::password_hash(argv[1], rng) << '\n'; + << Botan::generate_passhash9(argv[1], rng) << '\n'; } else { - bool ok = Botan::password_hash_ok(argv[1], argv[2]); + bool ok = Botan::check_passhash9(argv[1], argv[2]); if(ok) std::cout << "Password and hash match\n"; else |