Add support for HEX-encoded keys. Fix #5.