Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
HashUtils Class Referencefinal

#include <HashUtils.hpp>

Static Public Member Functions

template<typename Algo = CryptoPP::SHA256>
static std::array< byte, Algo::DIGESTSIZE > bytes (const byte *buffer, const std::size_t buffSize)
 
template<typename Algo = CryptoPP::SHA256>
static std::array< byte, Algo::DIGESTSIZE > bytes (const std::vector< byte > &buffer)
 
template<typename Algo = CryptoPP::SHA256>
static std::string str (const std::vector< byte > &buffer, const bool uppercase=false)
 
template<typename Algo = CryptoPP::SHA256>
static std::array< byte, Algo::DIGESTSIZE > fileBytes (const fs::path &filename)
 
template<typename Algo = CryptoPP::SHA256>
static std::string fileStr (const fs::path &filename, const bool uppercase=false)
 
template<typename Algo = CryptoPP::SHA256>
static std::string stringify (const std::array< byte, Algo::DIGESTSIZE > &hash, const bool uppercase=false)
 

Detailed Description

Definition at line 22 of file HashUtils.hpp.

Member Function Documentation

◆ bytes() [1/2]

template<typename Algo = CryptoPP::SHA256>
static std::array<byte, Algo::DIGESTSIZE> HashUtils::bytes ( const byte *  buffer,
const std::size_t  buffSize 
)
inlinestatic

Definition at line 27 of file HashUtils.hpp.

◆ bytes() [2/2]

template<typename Algo = CryptoPP::SHA256>
static std::array<byte, Algo::DIGESTSIZE> HashUtils::bytes ( const std::vector< byte > &  buffer)
inlinestatic

Definition at line 35 of file HashUtils.hpp.

◆ fileBytes()

template<typename Algo = CryptoPP::SHA256>
static std::array<byte, Algo::DIGESTSIZE> HashUtils::fileBytes ( const fs::path &  filename)
inlinestatic

Definition at line 48 of file HashUtils.hpp.

◆ fileStr()

template<typename Algo = CryptoPP::SHA256>
static std::string HashUtils::fileStr ( const fs::path &  filename,
const bool  uppercase = false 
)
inlinestatic

Definition at line 82 of file HashUtils.hpp.

◆ str()

template<typename Algo = CryptoPP::SHA256>
static std::string HashUtils::str ( const std::vector< byte > &  buffer,
const bool  uppercase = false 
)
inlinestatic

Definition at line 40 of file HashUtils.hpp.

◆ stringify()

template<typename Algo = CryptoPP::SHA256>
static std::string HashUtils::stringify ( const std::array< byte, Algo::DIGESTSIZE > &  hash,
const bool  uppercase = false 
)
inlinestatic

Definition at line 108 of file HashUtils.hpp.


The documentation for this class was generated from the following file: