Skip to content

Instantly share code, notes, and snippets.

@aczid
aczid / cry1000.py
Last active August 29, 2015 14:01
import sys
from BSecure import *
from Crypto.Hash import MD5
from Crypto.Cipher import AES
from multiprocessing import Pool, cpu_count
p_check = MD5.new()
p_check.update(hex(Rx)[2:-1])
print "Px == MD5(Rx): %s" % (p_check.hexdigest() == hex(Px)[2:-1])
@aczid
aczid / build.sh
Last active July 13, 2018 13:27
AVR build script for bleeding edge toolchain
# - requires git, svn, hg installed
# - will just build the bleeding edge of everything
export PREFIX=`pwd`
export PATH=$PATH:$PREFIX/bin/
export SRCDIR=$PREFIX/src/
# todo test if SRCDIR exists, then get the source
mkdir -p $SRCDIR
# get binutils/gdb, gmp, mpfr, mpc
@aczid
aczid / build_all.sh
Last active August 29, 2015 14:20
AVR build script for bleeding edge toolchain (extended)
# - requires git, svn, hg installed
# - will just build the bleeding edge of everything
export PREFIX=`pwd`
export PATH=$PATH:$PREFIX/bin/
export SRCDIR=$PREFIX/src/
# todo test if SRCDIR exists, then get the source
mkdir -p $SRCDIR
# get binutils/gdb, gmp, mpfr, mpc