Small cryptographic operations and other fun stuff
Go to file
2023-01-12 18:05:17 +01:00
crypttool.py refactor rot and zero_width stuff 2023-01-12 18:05:17 +01:00
crypttool.pyc Single byte XOR brute force for multiple lines in a file 2017-11-09 11:17:33 +01:00
README.md typo 2018-04-09 12:49:14 +02:00
string_operations.py refactor rot and zero_width stuff 2023-01-12 18:05:17 +01:00

crypttool

This is my little commandline tool which I wrote to learn Python. It performs various cryptographic and miscalleneous tasks.

Instructions

  1. Clone this repository.
  2. cd crypttool
  3. chmod +x crypttool.py
  4. ./crypttool.py

Features:

ROT/Ceasar "Encryption"

  • Allows rotating strings by a given amount, aswell as 'bruteforcing an encrypted string (when asked, type all)

Hashing

  • Can hash files (absolute paths) or strings
  • Supports all algorithms from hashlib

Translation

  • Translate/convert strings between binary, decimal, octal, hex and ASCII

Base64 Encoder/Decoder

  • Guaranteed to work with strings and files (this is not a guarantee)
  • Uses a regex to automatically detect b64 strings
  • Needs absolute Paths for files
  • currently broken (atleast for files)

String Reverser

  • .syas ti tahw seod

Fixed XOR

  • XORs two hex strings

Single Byte XOR Bruteforce

  • Takes a file or a string
  • Tries to XOR decrypt with a key between 0 and 255, then returns the best matching results

XOR Repeating Key

  • I'm not sure anymore but I think this doesn't work

Zero-Width Strings

  • Create binary-encoded zerowidth-strings to hide in your texts
  • Or find and decode them!