5.41.3 HASH

The HASH command generates the hash of the specified field or file. The hash value is returned in the command message response.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

HASH

FILE

value

Optional. File Path.

FIELD

value

Optional. Field Name.

DIGEST

value

Optional. Hashing algorithm supported by the JVM.
MD2, MD5, SHA, SHA256, SHA384, SHA256.
Default. SHA.

ENCODING

value

Optional. Field value to byte encoding or special values *HEX, *BASE32 or *BASE64.
Default. UTF-8.

HMAC

value

Optional. HashMAC algorithm supported by the JVM.
HMACSHA1, HMACSHA256, HMACSH384, HMACSHA512.

KEYENCODING

value

Optional. KEY keyword value to byte encoding or special values *HEX, *BASE32 and *BASE64.
Default. UTF-8.

HASHENCODING

*HEX

Optional. String encoding of generated binary hash.
Default. *HEX

*BASE32

 

*BASE64