Merge pull request #155 from evoskuil/version2

Provide encoding/decoding helpers for all hash sizes.