sec-pentesting-toolkit/Cryptography
2014-11-03 10:49:17 -05:00
..
MD5 Reorganized 2014-11-03 10:49:17 -05:00
Paillier Reorganized 2014-11-03 10:49:17 -05:00
Rotation-Ciphers Reorganized 2014-11-03 10:49:17 -05:00
SHA Reorganized 2014-11-03 10:49:17 -05:00
tools some math scripts 2014-10-27 20:10:17 -04:00
README.md Reorganized 2014-11-03 10:49:17 -05:00

Cryptography

MD5

Scripts

  • Hash length extension attack
  • Brute force hex digest chars

SHA

Scripts

  • SHA-256 brute force

Rotation Ciphers

Scripts

  • Caesar
  • Brute force rotation
  • Pygenere
  • Frequency analysis

Online tools:

In the command line

$ VAR=$(cat data.txt)
$ echo "$VAR"
$ alias rot13="tr A-Za-z N-ZA-Mn-za-m"
$ echo "$VAR" | rot13

In Python

In Python we can use decoding:

"YRIRY GJB CNFFJBEQ EBGGRA".decode(encoding="ROT13")

Pailier Cryptosystem

Scripts

  • POC
  • Primes

Tools

Scripts:

  • Finding GDC
  • Finding if prime
  • Generate prime
  • Quick Select
  • XORtool

Online