rsa_draft.h
来自「将公钥加密算法RSA应用于小型文件加密。将任意文件加密成文本的解决方案」· C头文件 代码 · 共 22 行
H
22 行
// This is a draft version of RSA encryption
// Improved by sanicle,2006.1
// 3mn@3mn.net
#include "vlong.h"
class public_key
{
public:
vlong m,e;
vlong encrypt( const vlong& plain ); // Requires 0 <= plain < m
};
class private_key : public public_key
{
public:
vlong p,q;
vlong decrypt( const vlong& cipher );
void create( const char * r1, const char * r2 );
// r1 and r2 should be null terminated random strings
// each of length around 35 characters (for a 500 bit modulus)
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?