there are no other sensible crypto interfaces to use, so mcrypt is just the default
ECB does not use an IV. besides, if it did, you can't pass a random one to decrypt...
use log_fatal() for fatal errors.
fail when an empty key is passed to encrypt.
hash key using sha256, so key is as long as the block
Merge pull request #27 from exflickr/sane_crypto

Sane crypto