Test -hash utility

Test generating a hash of a string or of file contents.

Syntax
imsimta test -hash hash-name &#x5b;file-name&#x5d;

Required parameter specifying the hash function to use. Valid values are ,  ,  ,   ,  ,  ,  , or.

Optional parameter specifying the name of a file whose contents to input to the hash function. The  switch may not  be used if a file is specified.

Description
The  utility generates a hash of string  or file input. This may be of interest when testing the MTA&#x27;s ability to generate message hashes, a feature useful for  message archiving purposes.

,  (default)
may not be specified if a file-name parameter has been supplied.

May only be used when a string is being hashed, not when a file is specified.

May only be used when a string is being hashed, not when a file is specified.

Examples
Hash value: E6F36746CCBA42C288ACF906E636BB278EAEB7E8 In the above example, a hash of the string " " is  generated using the SHA-1 hash function.
 * 1) ./imsimta test -hash -string="just a test" SHA1

See also:
 * Archiving messages
 * MTA command line utilities