Atlantiraptor Docs

hash

Type: Function · Category: encode

Calculate the hash of a file.

This function calculates the MD5, SHA1 and SHA256 hashes of the file.

Argument Type Description
path accessors.OSPath (required) Path to open and hash.
accessor string The accessor to use
hashselect list of string The hash function to use (MD5,SHA1,SHA256)
max_size uint64 The maximum size of the file that will be hashed (default 100mb)

Required permissions: FILESYSTEM_READ

Platforms: macOS, Linux, Windows

Source: vql/functions/hash.go