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 8837287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:41:09+00:00 2026-06-14T09:41:09+00:00

Possible Duplicate: Probability of SHA1 collisions Let’s say I’m trying to identify duplicate files

  • 0

Possible Duplicate:
Probability of SHA1 collisions

Let’s say I’m trying to identify duplicate files in a file system. Would it be safe to say that if the files’ SHA1 checksums match, that they’re identical? Should I also look through their contents if they match?

I’ve read that the theoretical complexity of attack is 2^51 hash function calls. I’ve also read on SO that “For SHA1, which outputs 160 bits, the birthday attack reduces the complexity to 2^80. This should be safe for 30 years or more.” Should I still double check to make sure the file contents match? I jast want to make sure my assignment won’t produce an erroneous output when it’s run under a test script.

  • 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-14T09:41:10+00:00Added an answer on June 14, 2026 at 9:41 am

    There’s a 1 in 2^160 chance that two given messages have the same hash (since SHA-1 produces a 160-bit hash).

    Even if you have a million entries in your fileSystem, that’s still a 1 in 10^42 chance that a new entry will share the same hash.

    SHA-1 has proved to be fairly good, so I don’t think you need to worry about collisions at all. If you need more you can add some quality attributes like a timestamp, filesize ..

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

Sidebar

Related Questions

Possible Duplicate: C# driver development? I would like to know if I can do
Possible Duplicate: how to delete a file? My application first reads the fields in
Possible Duplicate: How can I delete a file pointed to by a FILE* in
Possible Duplicate: nth-child for every two table rows I'm trying to work my way
Possible Duplicate: Trying to get tables next to each other horizontal I have two
Possible Duplicate: how to add a reference to the system.data.SQLite.dll to the windows phone
Possible Duplicate: Parsing XML String in C# How to process the below XML file
Possible Duplicate: Circle line collision detection I'm trying to do collision testing between a
Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file
Possible Duplicate: What are the performance characteristics of sqlite with very large database files?

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.