Skip to content

vandanavk/Cryptanalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

BCR code

Install GMP

  1. Download GMP from https://gmplib.org
  2. In Terminal, cd to the gmp folder
  3. ./configure
  4. make
  5. sudo make install

Install GMP-ECM

  1. Download GMP ECM from http://gforge.inria.fr/projects/ecm/
  2. In Terminal, cd to the ecm folder
  3. ./configure
  4. make ecm-params
  5. make
  6. sudo make install

In the Terminal session, where you will build and execute the BCR code,

  1. export C_INCLUDE_PATH=/usr/local/include
  2. export LIBRARY_PATH=/usr/local/lib
  3. export LD_LIBRARY_PATH=/usr/local/lib
  4. export LD_RUN_PATH=/usr/local/lib

To build BCR decryption code and execute,

  1. cd /Project_1
  2. gcc bcr.c -lgmp
  3. ./a.out

The code takes 30 minutes to execute because of the prime factorization step. The final message is printed on the output screen.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published