Reputation: 67254
I can see the SHA-1 of my blobs in the datastore viewer on live google app engine.
Is there a recommended way I can access the SHA-1 hash (or any other hash) of a blob programmatically in GAE?
Upvotes: 1
Views: 1123
Reputation: 14292
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.
Upvotes: 2
Reputation: 33239
Do you mean the BlobKey
? If so, just pass it to str()
. Otherwise just generate a hash yourself with hashlib
.
Upvotes: 1