summaryrefslogtreecommitdiffhomepage
path: root/auth.h
diff options
context:
space:
mode:
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);
+
+}
+