Granada  1.54.0
Structured layer on top of C++ REST SDK for building server applications in C++. Granada implements sessions, server side plug-in framework, C++ OAuth 2.0 server, data storage access, server script running, server browsing.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
granada::crypto::Cryptograph Class Reference

#include <cryptograph.h>

Inheritance diagram for granada::crypto::Cryptograph:
granada::crypto::NoCryptograph granada::crypto::OpensslAESCryptograph

Public Member Functions

 Cryptograph ()
 
virtual ~Cryptograph ()
 
virtual std::string Encrypt (const std::string &text, std::string password)
 
virtual std::string Decrypt (const std::string &text, std::string password)
 

Constructor & Destructor Documentation

granada::crypto::Cryptograph::Cryptograph ( )
inline

Constructor

virtual granada::crypto::Cryptograph::~Cryptograph ( )
inlinevirtual

Destructor

Member Function Documentation

virtual std::string granada::crypto::Cryptograph::Decrypt ( const std::string &  text,
std::string  password 
)
inlinevirtual

Decrypt a text with given password.

Parameters
crypted_textText to decrypt.
passwordPassword to use to decrypt text.
Returns
Decrypted text.

Reimplemented in granada::crypto::OpensslAESCryptograph, and granada::crypto::NoCryptograph.

virtual std::string granada::crypto::Cryptograph::Encrypt ( const std::string &  text,
std::string  password 
)
inlinevirtual

Encrypt a text with a password.

Parameters
textText to encrypt.
passwordPassword to use to encrypt text.
Returns
Encrypted text.

Reimplemented in granada::crypto::OpensslAESCryptograph, and granada::crypto::NoCryptograph.


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