From a595932283a3f3bf002eff5bf044762b78cab5f0 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 26 Apr 2020 19:52:44 +0200 Subject: crypt(3) http auth pws --- auth.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 auth.h (limited to 'auth.h') diff --git a/auth.h b/auth.h new file mode 100644 index 0000000..1a25e79 --- /dev/null +++ b/auth.h @@ -0,0 +1,13 @@ +#pragma once + +#include + +// Password encryption via crypt(3) + +namespace Auth { + + std::string generate(const std::string& pw); + bool validate(const std::string& crypted, const std::string& pw); + +} + -- cgit v1.2.3