gpt4 book ai didi

amazon-s3 - 如何获取亚马逊S3上文件的md5sum

转载 作者:行者123 更新时间:2023-12-03 05:34:24 24 4
gpt4 key购买 nike

如果我在 Amazon S3 上有现有文件,无需下载文件即可获取其 md5sum 的最简单方法是什么?

最佳答案

AWS 的 ETag 文档说道:

The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:

  • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.
  • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.
  • If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption.

引用:http://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonResponseHeaders.html

关于amazon-s3 - 如何获取亚马逊S3上文件的md5sum,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1775816/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com