Useful crypto tools for CTF
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build/lib/cryptools gitignore Feb 20, 2017
cryptools gitignore Feb 20, 2017
dist test Dec 8, 2017
.gitignore gitignore Feb 20, 2017
README.md test Dec 8, 2017
setup.py first commit Feb 1, 2017
test.py first commit Feb 1, 2017

README.md

cryptools

Useful crypto tools for CTF

Tech

Prime-factorize methods

  • Small division
  • Miller-Rabin test
  • Pollard's rho algorithm
  • Felmat method

RSA

Implement

  • Encrypt/Decrypt
  • Multi-prime RSA
  • Chinese remainder theorem
  • Generating random prime numbers

Attacks

  • Low public exponent attack
  • Common modulus attack
  • Wiener's attack
  • Hastad's broadcast attack
  • Franklin-Reiter related message attack
  • Chosen cihpertext attack

Elliptic Curve

TODO.

Installation

Requirements

  • PyCrypto
  • GmPy
$ git clone git@github.com:sonickun/cryptools.git
$ python setup.py install

Usage

$ python
>>> from cryptools import *

There are the sample codes. <- TODO

License

MIT