giga::Crypto Class Referencefinal

Public Types

enum  AesTuple : int { data = 0, iv, salt }
 

Static Public Member Functions

static std::string pbkdf2_sha256 (const utility::string_t &password, const std::string &salt, std::size_t length, uint64_t iteration=1024ul)
 
static std::string pbkdf2_sha512 (const utility::string_t &password, const std::string &salt, std::size_t length, uint64_t iteration=1024ul)
 
static std::string base64encode (const std::string &data)
 
static std::string base64decode (const std::string &data)
 
static std::string calculateFid (const std::string &hashHexEncoded)
 
static std::string calculateFkey (const std::string &hashHexEncoded)
 
static std::string calculateLoginPassword (const utility::string_t &login, const utility::string_t &password)
 
static std::string calculateMasterPassword (const std::string &salt, const utility::string_t &password)
 
static std::string sha1File (const utility::string_t &filename)
 
static std::tuple< std::string,
std::string, std::string > 
aesEncrypt (const utility::string_t &password, const std::string &data)
 
static std::string aesDecrypt (const utility::string_t &password, const std::string &saltStr, const std::string &ivStr, const std::string &data)
 
static std::string aesEncrypt (const std::string &key, const std::string &iv, const std::string &data)
 
static std::string aesDecrypt (const std::string &key, const std::string &iv, const std::string &data)
 

The documentation for this class was generated from the following files:
  • /home/thomas/code/GiGaSdk/src/giga/utils/Crypto.h
  • /home/thomas/code/GiGaSdk/src/giga/utils/Crypto.cpp