Parkmanne/headers/encrypt.h
MassiveAtoms db78ecd9cc Found cryptography library that was very easy to install.
Have hashing and verification functs ready.
2019-06-30 14:49:20 -03:00

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