{
  "id": "torrent_info_hash",
  "kind": "datatype",
  "status": "stable",
  "name": "BitTorrent Info Hash (BTIH)",
  "doc": "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 40 hexadecimal digits, as in magnet:?xt=urn:btih: links; old magnet links may carry the same 20 bytes as 32 Base32 characters, which the regexp does not cover. Version 2 torrents (BEP 52) use a SHA-256 info hash, written as a multihash in urn:btmh: links.",
  "parent": "sha1hash",
  "is_pii": false,
  "categories": [
    "internet",
    "identifiers",
    "cryptography"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[0-9a-fA-F]{40}$",
  "examples": [
    {
      "value": "dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c",
      "description": "Info hash of the Big Buck Bunny torrent published by WebTorrent",
      "valid": true
    },
    {
      "value": "08ada5a7a6183aae1e09d831df6748d566095a10",
      "description": "Info hash of the Sintel torrent published by WebTorrent",
      "valid": true
    },
    {
      "value": "DD8255ECDC7CA55FB0BBF81323D87062DB1F6D1C",
      "description": "The Big Buck Bunny info hash in uppercase",
      "valid": true
    },
    {
      "value": "dd8255ecdc7ca55fb0bbf81323d87062db1f6d1",
      "description": "one hex digit short (39 instead of 40)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/BitTorrent"
    },
    {
      "type": "doc",
      "url": "https://www.bittorrent.org/beps/bep_0003.html"
    },
    {
      "type": "doc",
      "url": "https://www.bittorrent.org/beps/bep_0009.html"
    },
    {
      "type": "doc",
      "url": "https://www.bittorrent.org/beps/bep_0052.html"
    }
  ],
  "translations": {
    "ru": {
      "name": "Хеш info торрента (BTIH)",
      "doc": "Идентификатор торрента: SHA-1-хеш словаря info файла .torrent, 40 шестнадцатеричных цифр."
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "torrentinfohashfield",
        "type": "field",
        "match": "text",
        "file": "common/internet.yaml"
      },
      {
        "rule": "torrentinfohashvalue",
        "type": "data",
        "match": "ppr",
        "file": "common/internet.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/internet/torrent_info_hash.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/internet/torrent_info_hash.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/torrent_info_hash.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/torrent_info_hash",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/torrent_info_hash.json"
  }
}