uhashlib – hashing algorithm¶
This module implements binary data hashing algorithms. Currently, it implements SHA256 algorithm. Choosing SHA256 was a deliberate choice, as a modern, cryptographically secure algorithm. This means that a single algorithm can cover both usecases of “any hash algorithm” and security-related usage, and thus save space omitting legacy algorithms like MD5 or SHA1.
Create a hasher object and optionally feed
Feed more binary data into hash.
Return hash for all data passed thru hash, as a bytes object. After this method is called, more data cannot be fed into hash any longer.
This method is NOT implemented. Use
ubinascii.hexlify(hash.digest())to achieve a similar effect.