Skip to content

bochsdbg/cryptools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%