Cleanup for hash variables

The default hashing method should be set to SHA1 right away, if not specified, and the decoder should also provide fallback during runtime, if the required algorithm is not available.