Some little help with RSA encryp

Discussion about everything. New games, 3d math, development tips...
Post Reply
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Some little help with RSA encryp

Post by REDDemon »

Hi I need some help in founding some C/C++ RSA opensource encryption libraries. (i need something that works on arrays of bites only. So i need only a stand-alone code that doesn't require any external library for compiling)

I want to be able doing followings things

1) generate a public and a private key from two given random prime numbers (i have about 6 Gigabytes of primes stored on my Harddisk so i don't have problems for giving the function those numbers...).

2) encrypt a data array (int*, lenght) with the public key
3) decrypt the data array using the private key.

of course if possible i want that keys lenght, and arrays lenght is not fixed but can be choosed as you wish (at least at compile time).

Can anyone help me? thanks. i 've been searching for that in last half-hour and didn't find anything. I will continue searching now.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Post by hendu »

Nobody usually encrypts with RSA, it's too heavy. The usual procedure is to encrypt with a regular cipher, and encrypt that key with RSA.

Same effect really; sorry if this doesn't bring you any closer to the solution. But many block ciphers are easily available in small files, with liberal licenses. I recommend blowfish.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

AES code is even included in the Irrlicht SDK.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

Yeah i was thinkin to use RSA for key encryption only. Blowfish seems the symmetric algorithm i was searching for. at a first look it is better than the old algorithm. Thanks.

There is still the problem of using RSA
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply