hl_query: Get information about a hash

Description Usage Arguments Value Note References Examples

View source: R/query.R

Description

Get information about a hash

Usage

1
hl_query(hash, type = c("md5", "sha1", "sha256"))

Arguments

hash

(chr) length can be > 1 for bulk queries

type

(chr) hash type. All passed-in hashes must be of the same type. Default is md5.

Value

data frame for md5 and sha1; list for sha256

Note

SHA-256 bulk lookups are not supported by the CIRCL hash lookup API

References

CIRCL Hash Lookup

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# individual

hl_query("8ED4B4ED952526D89899E723F3488DE4", "md5")
hl_query("FFFFFDAC1B1B4C513896C805C2C698D9688BE69F", "sha1")
hl_query("301c9ec7a9aadee4d745e8fd4fa659dafbbcc6b75b9ff491d14cbbdd840814e9", "sha256")

# bulk

hl_query(
  hash = c(
    "6E2F8616A01725DCB37BED0A2495AEB2",
    "8ED4B4ED952526D89899E723F3488DE4",
    "344428FA4BA313712E4CA9B16D089AC4"
  ),
  type = "md5"
)

hrbrmstr/hashlookup documentation built on Jan. 3, 2022, 12:14 a.m.