sha512(
sha512(
DATA
)

The sha512( function calculates the SHA–512 hash of a binary or text data item.

Parameters

This function has one parameter:

data – The data to be hashed.

Description

This function calculates the SHA–512 hash of a binary or text data item. SHA–512 produces a 512-bit (64-byte) hash value. A SHA–512 hash value is typically rendered as a hexadecimal number, 64 digits long. Here’s an example showing how the SHA–512 hash of a file can be calculated:

    sha512(fileload("~/Library/Application Support/AddressBook/AddressBook-v22.abcddb"))
        ☞ 03cb2989a40f5de9e34bfa1e9ff47c0c2c3678222c9db43f9e9ec169d2fcbda5a7f67909bf84e2eab
            4e2e5555b8d529edea7098c8c3997612ab7b1b695b38e4a

For more information about SHA–2 in general (SHA–512 is part of the SHA–2 family), see SHA2.

See Also

- decrypt( -- decrypts data.
- encrypt( -- encrypts data.
- md5( -- calculates the MD5 hash of a binary or text data item.
- sha1( -- calculates the SHA-1 hash of a binary or text data item.
- sha256( -- calculates the SHA-256 hash of a binary or text data item.

History

Version | Status | Notes
10.0 | New | New in this version.