9 months ago •
I wanted the passwords to be easy enough to crack in an hour or so, but difficult enough that one person couldn't own the entire scoreboard before others had a chance to try.
After testing out dictionary passwords I decided they were way too weak to meet my goals. It seemed I could crack them in a matter of minutes. The next option was to work on a set of random passwords that had a low enough complexity that they could be cracked with brute force. Here's the python script I used to generate these passwords:
It randomly generates passwords 5-7 characters long using different combinations of complexity. I limited to just lower case, lower case with digits, lower case with digits and some punctuation, and all letters with digits and some punctuation. Here are the hashes that were present on the "Dune" edition of the hat I had at DEFCON.
10 months ago •
Okay, so it's fun to have multiple colors -- otherwise why use RGB strips?
So far I have two colors, red for stock messages and green for hacked messages. What's the big deal, how hard could it be to add more colors? Well, there's a few things to consider.
First off, I'm using a bit-packed array as a frame buffer. That is to say, each pixel is one bit in an array so there is no room for a different color code for each pixel. At the very least this would require one byte for each of pixels in the 32x7 array. To make that meaninful I'd need equally large arrays to store the messages. Not this time around.
The second thing that makes color choices tricky is that I'm limited on how much current I can supply. This display is running from a 6000 mAh external cellphone battery. I'd like to pull less that 2A. I figure the character "8" has the most illuminated pixels. If filled the display with 8's and drove those pixels with all three colors at full brightness: 5.3 characters x 17 pixels x 60 mA = 5.4A.
Even though I could pull 2A, I want the battery to last longer than that. So I want to run single colors at 66% intensity, and mixed colors at an equal level.
Primary colors are easy:
- Red, Green, or Blue driven separately at a level of: 0b1010 1010 (decimal 170)
Mathematically mixes should sum to decimal 170:
- Yellow = Red and Green both driven at 0b0101 0101 (decimal 85 or just right shifted by one)
- Cyan = Green and Blue both driven at 0b0101 0101
- Magenta = Blue and Red both driven at 0b0101 0101
I'm not sure if there's a simple way to do this programmatically. For now I'm going to store these values in a PROGMEM array.