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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:34:10+00:00 2026-05-20T06:34:10+00:00

This problem might be a common one, but since I don’t know the terms

  • 0

This problem might be a common one, but since I don’t know the terms associated with it, I couldn’t search for it (unless Google accepted entire paragraphs as search queries).

I have a file – Can be a text file, or an MP3 file or a video clip or even a HUGE mkv file.

I have access to this file and now I have to process it in some way so that I get some kind of a value or unique identifier.. a hash, or something. I store it somewhere. This “hash” has to be small – several byte. It shouldnt be half the file size!

Later on, when I am presented with a file again, I have to verify whether it was the same original file using that value I got in step 1. I will NOT have access to the original file this time. All I have will be that value from step 1.

This algorithm should return true if the second file contains the exact same data – every single bit – as the first file (basically the same file) even if the file name, attributes, location etc have all changed.

Basically I need to know whether I am dealing with the same file, even if it moved, renamed and has all its attributes changed – but when NOT having access to both the files at the same time.

This has to be OS or FileSystem independent.

Is there a way to accomplish this?

  • 1 1 Answer
  • 5 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-20T06:34:11+00:00Added an answer on May 20, 2026 at 6:34 am

    What you’re looking for are cryptographic hash algorithms. Read about them:

    • http://en.wikipedia.org/wiki/SHA-1
    • http://en.wikipedia.org/wiki/MD5

    All robust languages and libraries offer support for calculating hashes.

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

Sidebar

Related Questions

I believe this might be one of the most common problem that users faces
You will suppose this is a big question.but there might be a simple problem
(I foresaw this problem might happen 3 months ago, and was told to be
I'm very confused and am hoping someone might have had this problem and be
I'm curious how others have solved this problem, and what problems might lurk behind
I think this might be a problem with the theme I'm using ( Nitobe
I think my code might be written incorrectly and this is causing my problem.
Ok, this might be a really odd problem. I am writing a web application,
Well, this might be a silly problem. I just want a faster implementation of
Okay, so the answer to my question might not be the problem but here's

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.