db78ecd9cc
Have hashing and verification functs ready.
15 lines
266 B
C++
15 lines
266 B
C++
#ifndef ENCRYPT_H
|
|
#define ENCRYPT_H
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <cstring>
|
|
#include <sodium.h>
|
|
#include <iostream>
|
|
|
|
using std::string;
|
|
|
|
string hash_password(string password);
|
|
bool verify_password(string hashed_password, string unhashed_password);
|
|
|
|
#endif |