Saturday, April 01, 2006

Once A Month Cooking - Frozen Pizza

http://www.bigdaveostrander.com/ask/askdavePF.htm talks about one thing about the pizza dough and crust being too dry after the bake-freeze-bake cycle. Then you get the magic of modern cooking agents which can make self-rising crust.

I also refined my standard password generation command for unix systems. dd if=/dev/urandom bs=4096 count=1 | tr -dc '[!-~]' Previously I used xxd which limited you to 256 random bytes. But with cryptographic hash functions like SHA-2 family going up through 512 bytes, more data is better. This makes the "standard" 8-byte password seem completely insufficient. The 20-byte password standard seems like it will be obsolete.

http://www.logarithmic.net/pfh/blog/01134344665 has commands to base64 encode and decode on the command line.


python -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)"

python -c "import base64,sys; base64.decode(sys.stdin,sys.stdout)"

perl -MMIME::Base64 -e 'print encode_base64(join("", <>))'

perl -MMIME::Base64 -e 'print decode_base64(join("", <>))'


I was thinking about using base64 for passwords, but then I remembered tr. Wikipedia has articles on Base64 and UUencode which do the same thing except Base64 looks less like line noise. UUencode just used the lower 64 entries of the printable ASCII set starting with something like space as the 6-bit zero. I like Base64 better because it's easier to use selection and it doesn't get as garbled on URLs.