Module sha256

Verify the SHA256 hash of a file.

Info:

Functions

verify(hash)
Check that a given hash matches the actual SHA256 hash of a file. Useful for alerting on changed hashes.

Promiser:

    path of file to hash

Aliases:

    check

Parameters:

  • hash the 32-byte alphanumeric string to match for [ALIAS: digest, signature] [REQUIRED]

Usage:

    sha256.verify("/etc/passwd"){
        hash = "09e40b7b232c4abb427f1344e636e44ebf5684f70fb6cd67507e88955064255d"
    }
generated by LDoc 1.4.6 Last updated 2017-05-09 15:50:38