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, 128 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


History

VersionStatusNotes
10.0NewNew in this version.