bochsdbg / cryptools

Useful crypto tools for CTF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Useful crypto tools for CTF


Languages

Language:Python 100.0%