_sha1
| Use Case | Command | Description |
|---|---|---|
| Create a new SHA1 hash object | sha1() or sha1(b'data') | Return a new SHA1 hash object, optionally initialized with a string. |
| Update hash with data | hash.update(data) | Update the hash object's state with the provided string. |
| Get digest as bytes | hash.digest() | Return the digest value as a bytes object. |
| Get digest as hex string | hash.hexdigest() | Return the digest value as a string of hexadecimal digits. |
| Copy hash object | hash.copy() | Return a copy of the hash object. |
builtins.object
sha1SHA1Type = class sha1(builtins.object)
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.block_sizedigest_sizenamesha1(string=b'', *, usedforsecurity=True) – Return a new SHA1 hash object; optionally initialized with a string.(built-in)
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 16:55 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)