Change default hash algorithm from sha1 -> sha256 and remove dup return