pydoc > _sha2

Help on built-in module _sha2:

NAME
    _sha2

CLASSES
    builtins.object
        SHA224Type
        SHA256Type
        SHA384Type
        SHA512Type

    class SHA224Type(builtins.object)
     |  Methods defined here:
     |
     |  copy(self, /)
     |      Return a copy of the hash object.
     |
     |  digest(self, /)
     |      Return the digest value as a bytes object.
     |
     |  hexdigest(self, /)
     |      Return the digest value as a string of hexadecimal digits.
     |
     |  update(self, obj, /)
     |      Update this hash object's state with the provided string.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  block_size
     |
     |  digest_size
     |
     |  name

    class SHA256Type(builtins.object)
     |  Methods defined here:
     |
     |  copy(self, /)
     |      Return a copy of the hash object.
     |
     |  digest(self, /)
     |      Return the digest value as a bytes object.
     |
     |  hexdigest(self, /)
     |      Return the digest value as a string of hexadecimal digits.
     |
     |  update(self, obj, /)
     |      Update this hash object's state with the provided string.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  block_size
     |
     |  digest_size
     |
     |  name

    class SHA384Type(builtins.object)
     |  Methods defined here:
     |
     |  copy(self, /)
     |      Return a copy of the hash object.
     |
     |  digest(self, /)
     |      Return the digest value as a bytes object.
     |
     |  hexdigest(self, /)
     |      Return the digest value as a string of hexadecimal digits.
     |
     |  update(self, obj, /)
     |      Update this hash object's state with the provided string.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  block_size
     |
     |  digest_size
     |
     |  name

    class SHA512Type(builtins.object)
     |  Methods defined here:
     |
     |  copy(self, /)
     |      Return a copy of the hash object.
     |
     |  digest(self, /)
     |      Return the digest value as a bytes object.
     |
     |  hexdigest(self, /)
     |      Return the digest value as a string of hexadecimal digits.
     |
     |  update(self, obj, /)
     |      Update this hash object's state with the provided string.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  block_size
     |
     |  digest_size
     |
     |  name

FUNCTIONS
    sha224(string=b'', *, usedforsecurity=True)
        Return a new SHA-224 hash object; optionally initialized with a string.

    sha256(string=b'', *, usedforsecurity=True)
        Return a new SHA-256 hash object; optionally initialized with a string.

    sha384(string=b'', *, usedforsecurity=True)
        Return a new SHA-384 hash object; optionally initialized with a string.

    sha512(string=b'', *, usedforsecurity=True)
        Return a new SHA-512 hash object; optionally initialized with a string.

FILE
    (built-in)


_sha2
NAME CLASSES
class SHA224Type(builtins.object) class SHA256Type(builtins.object) class SHA384Type(builtins.object) class SHA512Type(builtins.object)
FUNCTIONS
sha224(string=b'', *, usedforsecurity=True) sha256(string=b'', *, usedforsecurity=True) sha384(string=b'', *, usedforsecurity=True) sha512(string=b'', *, usedforsecurity=True)
FILE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-02 19:12 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^