Returns the MD5 checksum of the input string.
Example:
# Example for md5sum
println md5sum("abc")
Returns a struct bearing a checksum (.sum), an error code (.err), and a headers map (.headers) for comparison to an S3 ETag field.
[#SOL]Blocksize specifies the size in bytes of multi-part upload chunks.
[#SOL]When blocksize is 0 then auto-select blocksize and upload checksum type.
[#SOL]When blocksize is -1 then treat as a single-part upload.
[#SOL]When legacyOnly is true, skip modern checksums and only compute legacy ETag.
[#SOL]Error codes: 0 okay, 1 single-part warning, 2 file error, 3 checksum error
[#SOL]The .headers map contains: md5, md5_base64, sha256, sha256_base64, sha1, sha1_base64, crc32, crc32_base64, crc32c, crc32c_base64
[#SOL]To get remote checksums: checksums=${aws s3api head-object --bucket {bucket} --key {key} --checksum-mode ENABLED}
[#SOL]To upload with checksums: aws s3api put-object --bucket {bucket} --key {key} --body {file} --checksum-algorithm SHA256
Example:
# Example for s3sum
println s3sum("/tmp/f").sum
Returns the SHA1 checksum of the input string.
Example:
# Example for sha1sum
println sha1sum("abc")
Returns the SHA224 checksum of the input string.
Example:
# Example for sha224sum
println sha224sum("abc")
Returns the SHA256 checksum of the input string.
Example:
# Example for sha256sum
println sha256sum("abc")