Archive for March, 2004

Factoring large integers: pollard p-1 method

It is a number theoretic integer factorization algorithm, invented by John Pollard in 1974. It is a special-purpose algorithm, meaning that it is only suitable for integers with specific types of factors; it is the simplest example of an algebraic-group factorisation algorithm.

From Wikipedia

Pollard p-1 algorithm

  1. N > 2
  2. b = ( a finite integer )
  3. Let k be a multiple of all (or nearly all) integers <= b ( i.e k = b )
  4. 2 <= a <= N - 2 ( with a random )
  5. Compute Greatest Common Divisor (GCD) between a^k-1(mod N) and N
    • So we need to comput a^k-1 in ZN and to find the Greatest Common Divisor between this value and N ( i.e : use the Euclid’s algorithm )
  6. If GCD = 1 then return to 4. ; else if GCD > 1 then GCD is a prime number and we found a factor of N

Read more »

Factoring large integers: classical method

RSA strength depends on the difficulty to find prime factors of large integers and this is why these kind of algorithms gain a lot of attention.
Take an RSA key of 512 bits [ RSA-512 ]….
Read more »

Simple file encrypter/decrypter ( DES / Blowfish / IDEA / MD5 / RSA algorithms )

UNISFED is a simple file encrypter / decrypter that supports DES / Blowfish / IDEA / MD5 / RSA algorithms based on OpenSSL libraries.

Read more »