summaryrefslogtreecommitdiffhomepage
path: root/auth.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-26 19:52:44 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-26 19:52:44 +0200
commita595932283a3f3bf002eff5bf044762b78cab5f0 (patch)
tree790ba05f95b3fd3d6790f8132f9f6f95f908f18a /auth.h
parentc73f913844f6aed9e740780f8a6732477fa3d680 (diff)
crypt(3) http auth pws
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h13
1 files changed, 13 insertions, 0 deletions
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 <string>
+
+// Password encryption via crypt(3)
+
+namespace Auth {
+
+ std::string generate(const std::string& pw);
+ bool validate(const std::string& crypted, const std::string& pw);
+
+}
+