开发者

SHA-1 google blob app engine

开发者 https://www.devze.com 2022-12-16 08:48 出处:网络
I can see the SHA-1 of my blobs in the datastore viewer on live google app engine.开发者_如何学Go

I can see the SHA-1 of my blobs in the datastore viewer on live google app engine.

开发者_如何学Go

Is there a recommended way I can access the SHA-1 hash (or any other hash) of a blob programmatically in GAE?


Currently it is not possible to get the hash of the content of a blob stored in AppEngine's blobstore without using an external script to download it and hash it (a far from ideal solution).

Attaching a star to issue 2510 on the AppEngine issue tracker may help get the ability to hash blobs into AppEngine.


Do you mean the BlobKey? If so, just pass it to str(). Otherwise just generate a hash yourself with hashlib.


Have you looked at the module hashlib? It has a sha1() function.

0

精彩评论

暂无评论...
验证码 换一张
取 消