Changed encryption to SHA256

SHA1 is no longer supported by amazon