Open topic with navigation

# hash_file

The `hash_file` method hashes the contents of the specified file using the SHA1 or MD5 algorithm.

## Syntax

    hash_file( FileName, Algorithm )

## Arguments

Argument | Description
--- | ---
`FileName` | (string) The name of the file.
`Algorithm` | (string) The type of algorithm to use. Must be either SHA1 or MD5.

## Returns

(String). A hash of the file contents.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm