SHA-1 hash
ID sha1hash
DatatypeNot PIIidentifier
Digest of the SHA-1 hash function (160 bits), used for example as a Git object id or a file checksum. SHA-1 is no longer considered collision-resistant. It is written as 40 hexadecimal digits. SHA-1 and RIPEMD-160 digests have the same length, so the value alone does not tell them apart: use the field name or context.
- Parent datatype
- Hash by field name (generic)
hash - Categories
- Cryptographic identifiers, Software development
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- AutoType benchmark
SHA1_correct- FTA
HASH.SHA1_HEX- Former IDs
sha1- Quality
- 95/100 · missing: translation
- Metacrafter rules
- 3 rules (1 by field name, 2 by value)
sha1hashdata, basic/crypto.yamlsha1hash_by_fieldfield, basic/crypto.yamlsha1hashbyvaluedata, common/software.yaml, key sha1
- Supported by tools
- Auto-Type, FTA (Fast Text Analysis), Great Expectations Semantic Types Expectations, metacrafter, metacrafterpro
Regular expression
^[0-9a-fA-F]{40}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| da39a3ee5e6b4b0d3255bfef95601890afd80709 | SHA-1 hash of the empty string |
| a9993e364706816aba3e25717850c26c9cd0d89d | SHA-1 hash of the string 'abc' |
| da39a3ee5e6b4b0d3255bfef95601890afd8070 invalid | one hex digit short (39 instead of 40) |
Child datatypes
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| torrent_info_hash | BitTorrent Info Hash (BTIH) | internet, identifiers, cryptography | global | Identifier of a torrent: the hash of the bencoded info dictionary of its .torrent file. Version 1 torrents (BEP 3) use SHA-1, written as... |
Sources
- wikipedia: https://en.wikipedia.org/wiki/SHA-1
- doc: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/sha1hash - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/cryptography/sha1hash.yamlon GitHub