diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-26 19:52:44 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-26 19:52:44 +0200 |
commit | a595932283a3f3bf002eff5bf044762b78cab5f0 (patch) | |
tree | 790ba05f95b3fd3d6790f8132f9f6f95f908f18a /auth.h | |
parent | c73f913844f6aed9e740780f8a6732477fa3d680 (diff) |
crypt(3) http auth pws
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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); + +} + |