Skip to content

Instantly share code, notes, and snippets.

View ewuehler's full-sized avatar
🔨
Building stuff

Eric Wuehler ewuehler

🔨
Building stuff
View GitHub Profile
from __future__ import print_function
import boto3
import json
import logging
from boto3.dynamodb.conditions import Attr
print('Loading function')
@ewuehler
ewuehler / scanmac.py
Last active December 5, 2017 19:09
Script for checking SHA256 hash of first N chars on a MAC byte...
#!/usr/bin/env /usr/bin/python
# Quick script to map a MAC byte (0x00-0xFF) to the first n chars of a sha256
# hash to look for collisions. However, I do not understand why we bother
# hashing a single byte when it is trivial to reverse the hash -- it
# can't be for privacy or anonymization reasons, so why?
import hashlib
itoh = {}
@ewuehler
ewuehler / keybase.md
Last active September 28, 2017 03:23
keybase.md

Keybase proof

I hereby claim:

  • I am ewuehler on github.
  • I am ericwuehler (https://keybase.io/ericwuehler) on keybase.
  • I have a public key whose fingerprint is C916 8DDD 1C54 0309 DA6A 8761 D6B7 8AD5 28E0 3CAB

To claim this, I am signing this object: