上传到Azure的Blob的md5哈希是base64编码的 [英] md5 hash of blob uploaded to Azure is base64 encoded
问题描述
上传到Azure blob存储的文件的md5哈希看起来是base64编码的.
It looks like the md5 hash of a file uploaded to Azure blob storage is base64 encoded.
我无法理解其背后的逻辑,因为它需要额外的步骤才能在比较一致性之前解码此md5哈希值.
I fail to understand the logic behind this as it requires an extra step to decode this md5 hash before comparing for consistency.
E g.
本地MD5哈希:sÔ(F¦,""Db〜[N
Local MD5 hash: sÔ(F¦‚""Db~[N
blob.Properties.ContentMD5: c9QoHkamgiKTRANifltOGQ ==
blob.Properties.ContentMD5: c9QoHkamgiKTRANifltOGQ==
推荐答案
据我了解,首先使用base64编码的原因相同-通过将数据转换为ASCII字符串来促进数据的传输而不会丢失内容..
As far as I understand, its the same reason base64 encoding is used in the first place - to facilitate transmission of data without the loss of the content by converting it to an ASCII string..
hth
马辛
hth
Marcin
这篇关于上传到Azure的Blob的md5哈希是base64编码的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!