Hash[expr] gives an integer hash code for the expression expr. Hash[expr, type] gives an integer hash digest of the specified type for expr. Hash[expr, type, "format"] gives a hash code in the specified format.
Hash a string: In[1]:=Hash[abcdef] Out[1]=2013519615402292549 Digital fingerprint of data: In[1]:=Hash[ByteArray[{123, 45, 67, 89, 98, 76, 54, 32, 1}], SHA] Out[1]=205163851794085253373860936160163003382114085276 SHA256 hash given in hexadecimal form: In[1]:=Hash[The quick brown fox jumps over the lazy dog, SHA256, HexString] Out[1]=d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
Protected
FileHash | GenerateDerivedKey | GenerateSymmetricKey | GenerateDigitalSignature | LeafCount | ByteCount | Dispatch | BaseEncode | BinarySerialize
1333rd most common (1 in 195000 symbols)
1506th most common (1 in 1230000 symbols)
1829th most common (1 in 43000 symbols)
introduced in Version 1 (June 1988) last modified in Version 13.1 (June 2022)