Skip to content

kryc/primetools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Primetools

By Kryc

Introduction

Primetools is a set of utilities for manipulating prime numbers and, more specifically, factorising the product of two primes. The latter is extremely useful for attacking weak RSA keys.

The main use of this project is in the building and solving of capture the flag (CTF) competitions.

Factorisation Strategies

Note that although the original Pollard's Rho is implemented and working, Brent's improvements provide a roughly 24% speed improvement so this version is used as the default.

Building

Building the project is straightforward on *nix systems.

mkdir build;
cd build;
cmake -DCMAKE_BUILD_TYPE=Release ..
make

Running

There are a couple of command line switches, but the main one to use would be:

./primetools factorise <N>

Where N is the number whose prime factors you wish to find.

About

A collection of tools for manipulating and factorising primes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published