Skip to content

Instantly share code, notes, and snippets.

@Grezzo
Grezzo / Pocket RC4 Decode.py
Last active August 29, 2015 14:22
Pocket RC4 Decode for challenge 1 of MWR's HackFu 2015 Challenge
#Orders document for challenge 1 of MWR's HackFu 2015 mentions "Pocket RC4"
#Decrypt Pocket RC4 using algorythm from http://aarontoponce.org/wiki/card-ciphers/pocket-rc4
#Twitter account for clues is mentioned in earlier document
#Suit order from a tweet clue by MWRLabs (https://twitter.com/mwrlabs)
#"He Shall Conquer Dragons" (https://twitter.com/mwrlabs/status/579991389410357248)
def letter_to_number(letter):
return ord(letter.upper()) - 64 #64 is the number chars before "A"
@Grezzo
Grezzo / 7Seg.html
Last active March 24, 2022 16:37
Quad 7 Segment Display in HTML/JavaScript
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Quad 7 Segment Display in HTML/JavaScript</title>
<style type="text/css">
div.anode {
border: solid 2px red;
background: red;
color: white;