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?
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?
Do you mean the BlobKey
? If so, just pass it to str()
. Otherwise just generate a hash yourself with hashlib
.
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.