hash
— file hashes
The hash
check runs the contents of files through a hashing algorithm, and asserts that the result matches a known hash.
Examples
Check that a file has a specific MD5 hash:
[[hash]] path = '/usr/bin/specsheet' algorithm = 'md5' hash = '3f22baaf4ba820a800dfc51af5ba1892'
List of parameters
parameter | structure | description |
---|---|---|
algorithm | string | The hashing algorithm to use. |
hash | string | The expected hash, as a string. |
path | string | Path to a local file on disk. |
List of hashing algorithms
md5
sha1
sha224
sha256
sha384
sha512