BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions | Static Public Member Functions
BeeeOn::CryptoParams Class Reference

Public Member Functions

void setAlgorithm (const std::string &name)
 
std::string algorithm () const
 
void setSalt (const std::string &salt)
 
std::string salt () const
 
void setIterationCount (const int count)
 
int iterationCount () const
 
Poco::Crypto::CipherKey createKey (const std::string &passphrase) const
 
Poco::Crypto::CipherKey randomKey (const unsigned int length=256) const
 
std::string toString () const
 
bool empty () const
 

Static Public Member Functions

static CryptoParams parse (const std::string &input)
 
static CryptoParams create (const std::string &algorithm)
 
static CryptoParams createEmpty ()
 
static std::string randomString (const unsigned int length)
 

Member Function Documentation

string CryptoParams::randomString ( const unsigned int  length)
static

Generates a secure random string that can be used as a random salt or passphrase. Do not reimplemented in other classes, prefer always this call.


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