The encrypt class.
More...
#include <RabbitCommonEncrypt.h>
|
| CEncrypt (const char *pszPassword="RabbitCommon") |
|
int | SetPassword (const char *pszPassword) |
|
int | Encode (const char *pIn, const int &inLen, char **pOut, int &outLen) |
|
int | Encode (const QString &szIn, QByteArray &szOut) |
|
int | Dencode (const char *pIn, const int &inLen, char **pOut, int &outLen) |
|
int | Dencode (const char *pIn, const int &inLen, std::string &szOut) |
|
int | Dencode (const QByteArray &szIn, QString &szOut) |
|
The encrypt class.
Definition at line 21 of file RabbitCommonEncrypt.h.
◆ CEncrypt()
RabbitCommon::CEncrypt::CEncrypt |
( |
const char * |
pszPassword = "RabbitCommon" | ) |
|
◆ ~CEncrypt()
RabbitCommon::CEncrypt::~CEncrypt |
( |
| ) |
|
◆ Dencode() [1/3]
int RabbitCommon::CEncrypt::Dencode |
( |
const char * |
pIn, |
|
|
const int & |
inLen, |
|
|
char ** |
pOut, |
|
|
int & |
outLen |
|
) |
| |
- Parameters
-
pIn | 输入要解密的数据指针 |
inlen | 输入要解密的数据的长度 |
pOut | 输出解密了的数据指针.调用者使用完成后,需要用delete []*pOut |
outLen | 解密了的数据长度 |
Definition at line 106 of file RabbitCommonEncrypt.cpp.
◆ Dencode() [2/3]
int RabbitCommon::CEncrypt::Dencode |
( |
const char * |
pIn, |
|
|
const int & |
inLen, |
|
|
std::string & |
szOut |
|
) |
| |
◆ Dencode() [3/3]
int RabbitCommon::CEncrypt::Dencode |
( |
const QByteArray & |
szIn, |
|
|
QString & |
szOut |
|
) |
| |
◆ Encode() [1/2]
int RabbitCommon::CEncrypt::Encode |
( |
const char * |
pIn, |
|
|
const int & |
inLen, |
|
|
char ** |
pOut, |
|
|
int & |
outLen |
|
) |
| |
- Parameters
-
pIn | 输入要加密的数据指针 |
inlen | 输入要加密的数据的长度 |
pOut | 输出加密了的数据指针.调用者使用完成后,需要用delete []*pOut |
outLen | 加密了的数据长度 |
Definition at line 48 of file RabbitCommonEncrypt.cpp.
◆ Encode() [2/2]
int RabbitCommon::CEncrypt::Encode |
( |
const QString & |
szIn, |
|
|
QByteArray & |
szOut |
|
) |
| |
◆ SetPassword()
int RabbitCommon::CEncrypt::SetPassword |
( |
const char * |
pszPassword | ) |
|
◆ m_szPassword
std::string RabbitCommon::CEncrypt::m_szPassword |
|
private |
The documentation for this class was generated from the following files: