md5_file_checksum
1.2.1, released 5 weeks ago by albemala.me
Calculates file checksums as MD5 hashes using platform native implementations.
What it does
A Flutter plugin that computes an MD5 hash checksum for a given file path using native Android and iOS code. It executes hash calculation in a background thread to prevent blocking the main UI thread.
AI-written summary of version 1.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need native MD5 file checksum calculation in a Flutter application
- You want to process file hashing off the main thread
Skip it when
- You want a pure Dart implementation, as the author notes native implementation is no longer necessary
- You are starting a new project, because this project is archived and will no longer be updated
Strengths
- Calculates hashes in the background thread
- Simple and straightforward API usage
Weaknesses
- The project is officially archived and will not receive updates
- Pure Dart alternatives using crypto package are now considered comparable in performance
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Minimum iOS deployment target is 12.0.
try {
final fileChecksum = await Md5FileChecksum.getFileChecksum(filePath: filePath);
} catch (exception) {
print('Unable to generate file checksum: $exception');
}Alternatives
Packages that do the same job and could replace md5_file_checksum.