Git Product home page Git Product logo

codebreaker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codebreaker's Issues

vigenereHacker.py fails w/ assignment error

petey$ python VigenereHacker.py 
Kasiski Examination results say the most likely key lengths are: 

Traceback (most recent call last):
  File "VigenereHacker.py", line 259, in <module>
    main()
  File "VigenereHacker.py", line 18, in main
    hackedMessage = hackVigenere(ciphertext)
  File "VigenereHacker.py", line 242, in hackVigenere
    if hackedMessage == None:
UnboundLocalError: local variable 'hackedMessage' referenced before assignment

Not obvious to me how to fix, if I figure it out will submit a pull request.

transpositionDecrypt.py fails with TypeError

I think the problematic code is:

    # The number of "columns" in our transposition grid:
    numOfColumns = math.ceil(len(message) / key)

Which causes:

Traceback (most recent call last):
  File "/Users/alexjs/dev/codebreaker/transpositionDecrypt.py", line 55, in <module>
    main()
  File "/Users/alexjs/dev/codebreaker/transpositionDecrypt.py", line 10, in main
    plaintext = decryptMessage(myKey, myMessage)
  File "/Users/alexjs/dev/codebreaker/transpositionDecrypt.py", line 32, in decryptMessage
    plaintext = [''] * numOfColumns

Wrapping it as int(math.ceil(len(message) / key)) allows the script to run, but decryption fails, so I'm assuming that's not the actual fix.

Python 2.7.2, OS X

makeRsaKeys.py - line 47 - Typo

# value in name) with the the n,e and d,e integers written in them,
Should be:
# value in name) with the n,e and d,e integers written in them,

caesarHacker.py - line 22 - Typo

# handle the wrap-around if num is 26 or larger or less than 0
Should be:
# handle the wrap-around if num is less than 0
When decrypting, the number to wrap-around can only be less than 0 since it is always doing a subtraction to decrypt.

makeRsaKeys.py - line 64 - Typo

line 64 in makeRsaKeys.py should be
print('The private key is a %s and a %s digit number.' % (len(str(privateKey[0])), len(str(privateKey[1]))))
instead of:
print('The private key is a %s and a %s digit number.' % (len(str(publicKey[0])), len(str(publicKey[1]))))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.