get_hash#

streaming.base.hashing.get_hash(algo, data)[source]#

Apply the hash algorithm to the data.

Parameters
  • algo (str) – Hash algorithm.

  • data (bytes) – Data to hash.

Returns

str – Hex digest.