增加RSA,未完成

This commit is contained in:
Stone 2016-01-26 03:07:40 +00:00
parent c758f0a72f
commit 4606876f56
2 changed files with 1241 additions and 0 deletions

1226
Security/RSA.cpp Normal file

File diff suppressed because it is too large Load Diff

15
Security/RSA.h Normal file
View File

@ -0,0 +1,15 @@
#ifndef __RSA_H__
#define __RSA_H__
#include "Sys.h"
// RSA 加密算法
class RSA
{
public:
// 加解密
static ByteArray Encrypt(const Array& data, const Array& pass);
static ByteArray Decrypt(const Array& data, const Array& pass);
};
#endif