rsa_san.h in RSA_file_encryption.


RSA public key encryption algorithm will be applied to small-scale file encrypti...Original Link
    Sponsored links

			
// This is a slow but easy RSA encryption class
// By sanicle,2005.12 
// 3mn@3mn.net

#include "vlong.h"

#define PRIME_COUNT 1000000

class RSA_san
{
  public:
	char r1[70];
	char r2[70];
	vlong n,e,d,p,q;
	vlong result;
	vlong prime_table[PRIME_COUNT];
	int prime_table_use;
	int prime_p_index;
	int prime_q_index;

	RSA_san();
	~RSA_san();
	vlong encrypt( const vlong& x ); 
	vlong decrypt( const vlong& y );
	int RSA_san_en(char * s,unsigned n);
	int RSA_san_en_byte(char b);
	int RSA_san_dn(char * s,unsigned n);
	int RSA_san_dn_hexstring(			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 ReadMe.txt1,003.00 B18-01-06 12:31
 rsa_draft.cpp3.30 kB18-01-06 23:20
 rsa_draft.h522.00 B18-01-06 23:21
 rsa_san.cpp9.02 kB21-01-06 15:30
 rsa_san.h1.11 kB21-01-06 15:30
 sanpack_rsa.cpp2.92 kB23-01-06 11:43
 sanpack_rsa.h1.56 kB23-01-06 11:48
 stdafx.cpp215.00 B18-01-06 12:31
 stdafx.h263.00 B18-01-06 12:31
 vlong.cpp10.56 kB19-01-06 13:38
 vlong.h1.74 kB19-01-06 13:37
 ReadMe.txt1.04 kB19-01-06 15:14
 rsa_draft.cpp3.30 kB18-01-06 23:20
 rsa_draft.h522.00 B18-01-06 23:21
 rsa_san.cpp9.02 kB21-01-06 15:30
 rsa_san.h1.11 kB21-01-06 15:30
 sanpack_rsa.cpp2.92 kB23-01-06 11:43
 sanpack_rsa.h1.56 kB23-01-06 11:48
 sanpack_rsa_c_debug.cpp90.00 B19-01-06 15:20
 stdafx.cpp223.00 B19-01-06 15:14
 stdafx.h195.00 B19-01-06 15:14
 vlong.cpp10.56 kB19-01-06 13:38
 vlong.h1.74 kB19-01-06 13:37
 <sanpack_rsa>0.00 B24-04-08 09:20
 <sanpack_rsa_c_debug>0.00 B24-04-08 09:21
 <RSA_file_encryption_wangyuqing>0.00 B22-04-09 08:21
...

Related Items

    Sponsored links