get_digest¶
- pyvo.utils.testing.get_digest(data)[source]¶
returns a hash-type string for data.
- Parameters:
- dataa string (in which case the utf-8-encoding will be hashed)
or bytes of which to generate the hash
- Returns:
- str
a reasonably unique message digest of
data
. This is currently a piece of the b64 encoding of an md5 digest of data, so don’t even think of doing anything cryptographic with this.