Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 958 Bytes

sha384.rst

File metadata and controls

28 lines (19 loc) · 958 Bytes

SHA-384

SHA-384 belongs to the SHA-2 family of cryptographic hashes. It produces the 384 bit digest of a message.

SHA-384 is roughly 50% faster than SHA-224 and SHA-256 on 64-bit machines, even if its digest is longer. The speed-up is due to the internal computation being performed with 64-bit words, whereas the other two hash functions employ 32-bit words.

SHA-512, SHA-512/224, and SHA-512/256 too are faster on 64-bit machines for the same reason.

This is an example showing how to use SHA-384:

>>> from Crypto.Hash import SHA384 >>> >>> h = SHA384.new() >>> h.update(b'Hello') >>> print(h.hexdigest())

SHA stands for Secure Hash Algorithm.

SHA-384 is not vulnerable to length-extension attacks.

Crypto.Hash.SHA384