{
  "id": "sha1hash",
  "kind": "datatype",
  "status": "stable",
  "name": "SHA-1 hash",
  "doc": "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": "hash",
  "aliases": [
    "sha1"
  ],
  "children": [
    "torrent_info_hash"
  ],
  "is_pii": false,
  "categories": [
    "cryptography",
    "software"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[0-9a-fA-F]{40}$",
  "examples": [
    {
      "value": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
      "description": "SHA-1 hash of the empty string",
      "valid": true
    },
    {
      "value": "a9993e364706816aba3e25717850c26c9cd0d89d",
      "description": "SHA-1 hash of the string 'abc'",
      "valid": true
    },
    {
      "value": "da39a3ee5e6b4b0d3255bfef95601890afd8070",
      "description": "one hex digit short (39 instead of 40)",
      "valid": false
    }
  ],
  "mappings": {
    "autotype": "SHA1_correct",
    "fta": "HASH.SHA1_HEX"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/SHA-1"
    },
    {
      "type": "doc",
      "url": "https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf"
    }
  ],
  "detected_by": {
    "tools": [
      "autotype",
      "fta",
      "greatexpectations",
      "metacrafter",
      "metacrafterpro"
    ],
    "metacrafter_rules": [
      {
        "rule": "sha1hash",
        "type": "data",
        "match": "ppr",
        "file": "basic/crypto.yaml"
      },
      {
        "rule": "sha1hash_by_field",
        "type": "field",
        "match": "text",
        "file": "basic/crypto.yaml"
      },
      {
        "rule": "sha1hashbyvalue",
        "type": "data",
        "match": "ppr",
        "file": "common/software.yaml",
        "key": "sha1"
      }
    ]
  },
  "quality": {
    "score": 95,
    "missing": [
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/cryptography/sha1hash.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/cryptography/sha1hash.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptography/sha1hash.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/sha1hash",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/sha1hash.json"
  }
}