Found cryptography library that was very easy to install.

Have hashing and verification functs ready.
This commit is contained in:
MassiveAtoms
2019-06-30 14:49:20 -03:00
parent 0674aacbeb
commit db78ecd9cc
7 changed files with 72 additions and 6 deletions

15
headers/encrypt.h Normal file
View File

@ -0,0 +1,15 @@
#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