On this page
hashlib.sha3_384
Prev: hashlib.sha3_256 | Up: hashlib | Next: hashlib.sha3_512
Rel: hashlib.blake2b, hashlib.blake2s, hashlib.file_digest, hashlib.md5
Ref: docs.python.org — hashlib.sha3_384
Tags: #public #python3 #stdlib #hashlib
Import
import hashlib
from hashlib import sha3_384
Signature & Overview
hashlib.sha3_384(data=b'', *, usedforsecurity=True, string=None)
Returns a sha3-384 hash object; optionally initialized with a string
Usage
import hashlib
h = hashlib.sha3_384(b"hello").hexdigest()
assert len(h) == 96
Gotchas
- SHA-3 384-bit: Produces a 48-byte (96 hex char) digest; immune to length-extension attacks.
REPL Inspect
from hashlib import sha3_384
help(sha3_384)
Linked from
Related notes
- tuts/python3/stdlib_module/hashlib/sha3_256 Linked here; links to this page; shared tags: #hashlib, #stdlib
- tuts/python3/stdlib_module/hashlib/sha3_512 Linked here; links to this page; shared tags: #hashlib, #stdlib
- tuts/python3/stdlib_module/hashlib Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/hashlib/blake2b Linked here; shared tags: #hashlib, #stdlib
- tuts/python3/stdlib_module/hashlib/blake2s Linked here; shared tags: #hashlib, #stdlib
- tuts/python3/stdlib_module/hashlib/file_digest Linked here; shared tags: #hashlib, #stdlib
- tuts/python3/stdlib_module/hashlib/md5 Linked here; shared tags: #hashlib, #stdlib
- tuts/python3/stdlib_module/hashlib/new shared tags: #hashlib, #stdlib
- tuts/python3/stdlib_module/hashlib/pbkdf2_hmac shared tags: #hashlib, #stdlib
- tuts/python3/stdlib_module/hashlib/sha1 shared tags: #hashlib, #stdlib