Comments (1)
This is virtually impossible for a few reasons. A hash algorithm is designed to only go one way, so you basically have to try every possible input and se if the hash matches, and even if you did that, there are multiple files that will produce the same hash (since the hash is only 128 bits).
The short answer is: it's not possible.
from md5-file.
Related Issues (17)
- doesn't work with files > 1GB
- You can use pipe HOT 4
- Change api to have two separate functions HOT 1
- Invalid MD5 value
- promise.js file is not included in module HOT 4
- Support modern browser runtime? HOT 6
- There is no promise.js in the dir after install with npm. HOT 1
- Not working on windows HOT 2
- TypeScript interface HOT 3
- "File not found" error for .asar files HOT 6
- Looking for new maintainer HOT 14
- Merge promise support with callbacks HOT 2
- Breaking change between 4.0.0 and 5.0.0 HOT 12
- Async version is slow HOT 1
- A question about uniqueness HOT 1
- Include the path of the file when generating the file's hash to prevent duplicate hashes when files have no content of their own. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md5-file.