Server
 
로딩중...
검색중...
일치하는것 없음
hash.hpp
이 파일의 Documentation 페이지로 가기
1
7#include <iostream>
8#include <string>
9#include <vector>
10#include <stdexcept>
11#include <random>
12
13// Argon2 해싱을 위한 라이브러리
14#include <sodium.h>
15
16
17using namespace std;
18
25string hash_password(const string& password);
26
34bool verify_password(const string& hashed_password, const string& password);
35
42std::vector<std::string> hash_recovery_codes(const std::vector<std::string>& codes);
43
49std::vector<std::string> generate_recovery_codes();
std::vector< std::string > hash_recovery_codes(const std::vector< std::string > &codes)
복구 코드를 해싱합니다.
Definition hash.cpp:65
bool verify_password(const string &hashed_password, const string &password)
Argon2id를 사용하여 비밀번호를 검증합니다.
Definition hash.cpp:50
string hash_password(const string &password)
Argon2id를 사용하여 비밀번호를 해싱합니다.
Definition hash.cpp:31
std::vector< std::string > generate_recovery_codes()
복구 코드를 생성합니다.
Definition hash.cpp:78