Random bits

 crypto, dinosaurs, security, tech  Comments Off on Random bits
Apr 212014

… well, literally… or pseudo literally? To generate 128 bits of pseudo-randomness: dd if=/dev/urandom bs=16 count=1 2>/dev/null| hexdump |awk ‘{$1=""; printf("%s", $0)}’ | sed ‘s/ //g’ Block size 16 = 16 bytes… do that once (count=1); that’s 16 bytes * 8 bits/byte = 128 bits. I’ve been using this in scripts lately, like “foo=$(…)”.

https server

 code, crypto, python, security  Comments Off on https server
Mar 112014

In conjunction with the openssl scripts… a little bit of python code to fire up an ssl server… lots of them out there, this one is mine. #!/usr/bin/env python # # fire up an HTTPS/ssl web server in the PWD (defaults to localhost:8081) # # optional – give a file name to serve up, like "$0 foofile.html" # If you use this option it’ll wait a few seconds and […]

openssl… let me count the ways I hate you….

 code, crypto, philosophy, security, tech, Uncategorized  Comments Off on openssl… let me count the ways I hate you….
Mar 112014
openssl... let me count the ways I hate you....

I put a script or two on github; generates a CA and server and client certs, suitable (I hope!) for openvpn and https and all that. Based on the easy-rsa scripts, but I didn’t find them that easy to use. A haiku to openssl: openssl a black crane over the lake may you rot in hell                   Image is Hokusai’s “Mount […]

© 2012 trouble Suffusion theme by Sayontan Sinha