Login   Register  
PHP Classes
elePHPant
Icontem

Error on use small primes numbers to generates the keys

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      RSA  >  All threads  >  Error on use small primes numbers to generates the keys  >  (Un) Subscribe thread alerts  
Subject:Error on use small primes numbers to generates the keys
Summary:Error on use small primes numbers to generate the keys
Messages:2
Author:Rafael M. Salvioni
Date:2008-11-05 18:21:17
Update:2008-11-26 22:43:17
 

  1. Error on use small primes numbers to generates the keys   Reply  
Picture of Rafael M. Salvioni
Rafael M. Salvioni
2008-11-05 18:21:18
On use small primes numbers to generate the keys, the decrypt function donīt work correctly and donīt decript the encripted data. Does not occurs with big primes numbers.

Checking the problem, noted that the error should be on the way in which the encrypt function packs the data ($s argument).

  2. Re: Error on use small primes numbers to generates the keys   Reply  
Picture of rudie dirkx
rudie dirkx
2008-11-26 22:43:12 - In reply to message 1 from Rafael M. Salvioni
You souldnt use such small number anyway! Considered "normal" are numbers of 512-1024 bits = 2^512 which is a lot.
See http://en.wikipedia.org/wiki/RSA for details.