Replace sha1 and md5 hashing with sha256 algorithm