Skip to content
0x7c0 edited this page Mar 27, 2014 · 4 revisions

usage: encryptopy.py [-h] [-v] -p Path (-E | -D) [-r] [-c] [-s] [-d] [-f] [-t Threads] [-n Name] [-k Key … ] {module … }


flag explanation:

  • -h: show help (info)
  • -v: show project version (info)
  • -p: ‘Path’ of original file (required)
  • -E or -D: for encryption of decryption (required)
  • {’module’ … }: [aes,des,base,xor,…] type of work (required)
  • -r: remove original file (optional)
  • -c: compress file (optional)
  • -s: print statistics and the end (optional)
  • -d: set default key for module (optional)
  • -f: force True on question mark (optional)
  • -k: ‘Key’ size for some work; for chiper in row, use like this: ‘-k 32 256 4’ (optional)
  • -t: ‘Threads’ number of worker (optional)
  • -n: ‘Name’ of new file (optional)

default flag:

  • -n: original file with .cr extension
  • -r: false
  • -c: false
  • -s: false
  • -d: false
  • -f: false

example:

python3 encryptopy.py -p pippo.pdf -E xor

create pippo.pdf.cr with xor encryption

python3 encryptopy.py -p pippo.pdf.cr -D xor -n ciao.pdf

create ciao.pdf with xor decryption, if password is correct

python3 encryptopy.py -r ciao.pdf -Ef hash -k 512

show sha512 hash and don’t print question

python3 encryptopy.py -r ciao.pdf -E aes des -k 192 3

encrypt with aes192 first and triple_des after

python3 encryptopy.py -r ciao.pdf -Efcs otp crc -k 0 32

encryption in row, print statistic message after work, and compress original file

Clone this wiki locally