CryptoProvider interface.
More...
#include <LicenseSpring/CryptoProvider.h>
CryptoProvider interface.
You can implement this interface to provide your custom approach for local license encryption. Before implementing your CryptoProvider class consider just changing Salt or Key of default provided.
Definition at line 19 of file CryptoProvider.h.
virtual LicenseSpring::CryptoProvider::~CryptoProvider |
( |
| ) |
|
|
virtual |
virtual std::string LicenseSpring::CryptoProvider::encrypt |
( |
const std::string & |
inputString | ) |
|
|
pure virtual |
virtual std::string LicenseSpring::CryptoProvider::decrypt |
( |
const std::string & |
inputString | ) |
|
|
pure virtual |
virtual void LicenseSpring::CryptoProvider::setSalt |
( |
const std::string & |
salt | ) |
|
|
virtual |
Set cryptographic salt.
- Parameters
-
salt | New value to set salt to equal |
virtual void LicenseSpring::CryptoProvider::setKey |
( |
const std::string & |
key | ) |
|
|
virtual |
Set key.
- Parameters
-
key | New value to set key to equal |
bool LicenseSpring::CryptoProvider::isKeySet |
( |
| ) |
const |
Checker for whether key is set.
- Returns
- True if the key is set (not empty), false if not set (empty).
std::string LicenseSpring::CryptoProvider::m_salt |
|
protected |
std::string LicenseSpring::CryptoProvider::m_key |
|
protected |
The documentation for this class was generated from the following file: