8000 GitHub - kangtastic/cryptopals: Solutions to the original Matasano Cryptopals challenges in Python 3.6.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kangtastic/cryptopals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cryptopals

Solutions to the original Matasano Cryptopals challenges in Python 3.6.

Overview

Here are my solutions to the original 6 sets of 48 Matasano Cryptopals programming challenges, implemented in Python 3.6. I intend to complete Sets 7 and 8 at some point.

Demos

Demo: Solution 46
Solution 46
Demo: Solution 48
Solution 48

Requirements

  • Python 3.6+
  • Pycryptodome (optional, but greatly speeds up AES if it's present)

Why 3.6? f-strings, mostly. Also, ThreadingHTTPServer (trivially backported from 3.7) is used once. Maybe some other 3.6+ features are too, I dunno.

Usage

Each solution is a script that can be run on its own. Any required servers will be started by the script.

Running them for yourself should be as easy as running them for yourself:

    $ ./cxx_script_name.py
    
    or
    
    $ python3.6 ./cXX_script_name.py

Disclaimers

Long-term I'd like to work on these, but at the moment:

  • Clean, performant, secure code this is not. Try "hacky". "Babby's first" isn't too far off.
  • Handling SIGINT or Ctrl+C while multiprocessing is tested on Linux only.
  • Documentation is hit-or-miss.
  • A couple of attacks don't work all the time on all platforms.

Legal

All of my original work in this repository is released under the WTFPL Version 2.

About

Solutions to the original Matasano Cryptopals challenges in Python 3.6.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0