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

  • SEARCH
  • Home
  • 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 8478701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:49:03+00:00 2026-06-10T18:49:03+00:00

I was wondering: what are maximum number of bytes that can safely be hashed

  • 0

I was wondering: what are maximum number of bytes that can safely be hashed while maintaining the expected collision count of a hash function?

For md5, sha-*, maybe even crc32 or adler32.

  • 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-06-10T18:49:05+00:00Added an answer on June 10, 2026 at 6:49 pm

    Your question isn’t clear. By “maximum number of bytes” you mean “maximum number of items”? The size of the files being hashed has no relation with the number of collisions (assuming that all files are different, of course).

    And what do you mean by “maintaining the expected collision count”? Taken literally, the answer is “infinite”, but after a certain number you will aways have collisions, as expected.

    As for the answer to the question “How many items I can hash while maintaining the probability of a collision under x%?”, take a look at the following table:

    http://en.wikipedia.org/wiki/Birthday_problem#Probability_table

    From the link:

    For comparison, 10^-18 to 10^-15 is the uncorrectable bit error rate of a typical hard disk [2]. In theory, MD5, 128 bits, should stay within that range until about 820 billion documents, even if its possible outputs are many more.

    This assumes a hash function that outputs a uniform distribution. You may assume that, given enough items to be hashed and cryptographic hash functions (like md5 and sha) or good hashes (like Murmur3, Jenkins, City, and Spooky Hash).

    And also assumes no malevolent adversary actively fabricating collisions. Then you really need a secure cryptographic hash function, like SHA-2.

    And be careful: CRC and Adler are checksums, designed to detect data corruption, NOT minimizing expected collisions. They have proprieties like “detect all bit zeroing of sizes < X or > Y for inputs up to Z kbytes”, but not as good statistical proprieties.

    EDIT: Don’t forget this is all about probabilities. It is entirely possible to hash only two files smaller than 0.5kb and get the same SHA-512, though it is extremely unlikely (no collision has ever been found for SHA hashes till this date, for example).

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

Sidebar

Related Questions

I was wondering if there was a maximum number of items that can be
I'm wondering about what is the maximum number of files that can be present
I am wondering what can be the maximum value that a <input type=hidden> can
Wondering if any of you can help me: I've made a signup modal that
Wondering if anyone can suggest a good file replication tool that will replicate across
I am wondering what is the maximum number of characters for a host-name in
I know that in SQL Server, the maximum number of objects in a database
I was wondering how can I find minimum and maximum values from a dataset,
I was wondering, what is the maximum possible length of a CISC instruction on
Wondering if there is any way to get the lambda expressions that result from

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.