NAWA 0.9
Web Application Framework for C++
crypto.h File Reference

A bunch of useful cryptographic functions (esp. hashing), acting as a wrapper to C crypto libraries. More...

Go to the source code of this file.

Namespaces

namespace  nawa
 
namespace  nawa::crypto
 

Functions

std::string nawa::crypto::sha1 (std::string const &input, bool hex=true)
 
std::string nawa::crypto::sha224 (std::string const &input, bool hex=true)
 
std::string nawa::crypto::sha256 (std::string const &input, bool hex=true)
 
std::string nawa::crypto::sha384 (std::string const &input, bool hex=true)
 
std::string nawa::crypto::sha512 (std::string const &input, bool hex=true)
 
std::string nawa::crypto::md5 (std::string const &input, bool hex=true)
 
std::string nawa::crypto::passwordHash (std::string const &password, hashing::HashingEngine const &hashingEngine=hashing::BcryptHashingEngine())
 
bool nawa::crypto::passwordVerify (std::string const &password, std::string const &hash, hashing::HashTypeTable const &hashTypeTable=hashing::DefaultHashTypeTable())
 

Detailed Description

A bunch of useful cryptographic functions (esp. hashing), acting as a wrapper to C crypto libraries.

Definition in file crypto.h.