Change default hash function to sha256

As md5 and sha1 should (must?) not be used anymore, the default should be changed to sha2