The cryptanalysis of the Rabin public key algorithm using the Fermat factorization method
Abstract
As a public key cryptography algorithm, the Rabin algorithm has two keys, i.e., public key (n) and private key (p, q). The security of Rabin algorithm relies on the difficulty of factoring very large numbers, so the greater the private keys are used, the better the security becomes. In order to test how hard it is to cryptanalyze the Rabin public key n, we use the Fermat factorization method to obtain the values of p and q. After obtaining the factors, both of these factors are tested whether or not they are in accordance with the Rabin private key requirements. The first is to test whether or not the factors are prime numbers using Fermat Little Theorem. The second is to test whether or not the factors are congruent to 3 in modulo 4. If the results of the two tests turn out to be positive, then the factors are indeed p and q, the private keys of the Rabin algorithm. The result of our experiment indicates that the value of public key n does not have a directly proportional correlation to the factoring time. A factor which may affect the factoring time is the difference between the private keys (p - q): the larger the difference, the longer the factoring time.
- Publication:
-
Journal of Physics Conference Series
- Pub Date:
- June 2019
- DOI:
- 10.1088/1742-6596/1235/1/012084
- Bibcode:
- 2019JPhCS1235a2084B