summaryrefslogtreecommitdiffhomepage
path: root/auth.h
blob: 1a25e79f58ea3f015d49ffa037eea70652c74181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);

}