Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3309748
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:40:41+00:00 2026-05-17T21:40:41+00:00

The online documentation says Hash[expr] gives an integer hash code for the expression expr.

  • 0

The online documentation says

Hash[expr] 
  gives an integer hash code for the expression expr.
Hash[expr,"type"]
  gives an integer hash code of the specified type for expr.

It also gives “possible hash code types”:

  • “Adler32” Adler 32-bit cyclic redundancy check
  • “CRC32” 32-bit cyclic redundancy check
  • “MD2” 128-bit MD2 code
  • “MD5” 128-bit MD5 code
  • “SHA” 160-bit SHA-1 code
  • “SHA256” 256-bit SHA code
  • “SHA384” 384-bit SHA code
  • “SHA512” 512-bit SHA code

Yet none of these correspond to the default returned by Hash[expr].

So my questions are:

  • What method does the default Hash use?
  • Are there any other hash codes built in?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:40:41+00:00Added an answer on May 17, 2026 at 9:40 pm

    The default hash algorithm is, more-or-less, a basic 32-bit hash function applied to the underlying expression representation, but the exact code is a proprietary component of the Mathematica kernel. It’s subject to (and has) change between Mathematica versions, and lacks a number of desirable cryptographic properties, so I personally recommend you use MD5 or one of the SHA variants for any serious application where security matters. The built-in hash is intended for typical data structure use (e.g. in a hash table).

    The named hash algorithms you list from the documentation are the only ones currently available. Are you looking for a different one in particular?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Regarding to jQuery utility function jQuery.data() the online documentation says: The jQuery.data() method allows
What does it take for online documentation to be helpful and interesting to read?
Does anyone know the format of the MAPI property PR_SEARCH_KEY ? The online documentation
The PayPal IPN Guide documentation says clearly Post the request to www.paypal.com or www.sandbox.paypal.com,
In the MSDN Documentation is says: Note: The Publish Web Site utility is not
How do I get online documentation in Haskell? Are there anything as elegant/handy as
Using online interfaces to a version control system is a nice way to have
Any online links / resources?
Does anyone know where online copies of the old The Perl Journal articles can
Watching SO come online has been quite an education for me. I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.