I'm trying to connect to an Amazon S3 bucket using a "Get" command. The Get has no payload, so Amazon requires a header with a SHA256 hash on an empty string. I've tried the following code (and several variations on the theme), but I always get an empty value instead of the hash value, which should be "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855".This is the code I'm using:ba = CreateObject("roByteArray")
ba.FromAsciiString("")
digest = CreateObject("roEVPDigest")
digest.Setup("sha256")
Hash = digest.Process(ba)
Is there a way to return the hash of an empty string, or must I simply hard code the Amazon provided value into the header?