Skip to content

Instantly share code, notes, and snippets.

View josiahholmes's full-sized avatar

Josiah Holmes josiahholmes

  • Warner Bros. Discovery
  • MD, USA
View GitHub Profile
@josiahholmes
josiahholmes / challenge03.py
Last active March 13, 2018 22:49
Repeating-key XOR Decryption Script
#!/usr/bin/python
def bestDecryption(ciphertext):
bestKey = -1
maxScore = -1
bestPlaintext = ''
for val in range(256):
plaintext = xorDecrypt(ciphertext,val)
score = englishScore(plaintext)
if score > maxScore:

Keybase proof

I hereby claim:

  • I am josiahholmes on github.
  • I am josiahholmes (https://keybase.io/josiahholmes) on keybase.
  • I have a public key ASAcmcr5GIDKBAgPsOxaGErornzBjQ2qukIHRB6Mp2cacAo

To claim this, I am signing this object:

@josiahholmes
josiahholmes / Stan Lee Tribute Page - Free Code Camp.markdown
Created June 7, 2016 13:46
Stan Lee Tribute Page - Free Code Camp