fourdst_plugin 0.0.1a
C++ Plugin Manager
Loading...
Searching...
No Matches
sha256.cpp File Reference
#include "fourdst/crypt/openSSL_utils.h"
#include <fstream>
#include <iomanip>
#include <sstream>
#include <vector>
#include <openssl/evp.h>

Namespaces

namespace  fourdst
 
namespace  fourdst::crypt
 
namespace  fourdst::crypt::utils
 

Functions

std::string fourdst::crypt::utils::calculate_sha256 (const std::filesystem::path &filepath)
 Calculates the SHA-256 hash of a file's contents.
 
std::string fourdst::crypt::utils::calculate_sha256_from_buffer (const std::vector< unsigned char > &data)
 Calculates the SHA-256 hash of a binary buffer.