How to calculate MD5 of a file on Android


Anything connected to the internet is vulnerable to attack. The same goes for the data stored on the internet or what we call as the cloud. An unfathomable amount of data is exchanged per day over the internet, giving rise to many security concerns. However, due to the advancement in security standards and algorithms, the researchers have been able to safeguard the privacy and security of the common users pretty well.

How to calculate MD5 of a file on Android

As such, Data Integrity is a major challenge of the data stored over the cloud or internet. For the unversed, the data integrity deals with the maintenance of, and the assurance of the accuracy and consistency of, data over its entire life-cycle, and is a critical aspect to the design, implementation and usage of any system which stores, processes, or retrieves data. Simply we say the integrity of a file is lost when it’s been tampered or altered in one or another unauthorized way.

MD5 – File Integrity Verify Checksum

There are various algorithms or functions developed for checking the integrity of data. Among them CRC, Adler-32 etc are some of the traditional, simple and widely used checksums. As such, the MD5 or message-digest algorithm holds great importance now, at least for the Android users who are involved in modding and custom developments. The APKs hosted over third-party store/websites rely on MD5 and SHA-1 to check the integrity of the APK.

Here we’ll see how can we check the MD5 of the downloaded zip or APK files from the website on an Android device. Once the MD5 is obtained, a user can cross-check with the MD5 provided by the developer or the creator to make sure the file hasn’t been corrupted or tampered.

MD5 Check Using Total  Commander

There are many apps available on Google Play Store such Android File Verifier, which are developed solely for the MD5 check purpose. But unfortunately, most of them are outdated with the last update aging back to 2013, and won’t work on the latest Android versions with much ease. So, here we’ll make use of the Total Commander File manager app which is one of the feature-packed and well-build third-party file managers for Android.

Step 1: Setting Up Total Commander

It’s pertinent to mention here that the Total Commander does not have a one-click solution to calculate MD5 sum of a file. Some steps need to be followed in order to make the Total Commander capable as a MD5 calculator.

  1. Download and Install Total Commander from Google Play Store, if you haven’t.
  2. Click on the “Add button” icon.
  3. Configure the button as follows:
    – Function type: Send shell command
    – Command: sh
    – Parameters: *md5sum %N ( The prefix * is optional)

Also read: How to fix “Whatsapp not working” error


Once the MD5 is set-up on Total Commander, it’s time to calculate the MD5 of a file (here, For that;

  1. Click on the icon of any file for which you want the MD5 sum so that a green tick appears on that icon.
  2. And then hit on your newly created MD5 sum calculation button(shell button down at the bottom). It will take a few seconds for the MD5 sum calculation to finish if you are doing it for a large file like a ROM zip or Stock Firmware file.

That’s it how you can calculate MD5 using Total Commander on Android. Moreover, if you’ve root access and Busybox installed as a system you can do the following on a Terminal app such as Termux.

  • Open terminal and type: 
    "busybox md5sum /sdcard/" 
    "/system/xbin/busybox md5sum /sdcard/"

Where sdcard/ is the location of the file whose MD5 is to be calculated.


Total Commander: Google Play Store.

Do you know that the MD5 used hash function producing a 128-bit hash value. Although MD5 was initially designed to be used as a cryptographic hash function, it has been found to suffer from extensive vulnerabilities. Despite, it’s still widely used as a checksum to verify data integrity, especially against unintentional corruption. It remains suitable for other non-cryptographic purposes, for example for determining the partition for a particular key in a partitioned database. That being said, hope you’d successfully calculated the MD5 of a file from your Android. Having trouble? Do let us know down in the comments.


Previous articleLeak: Motorola One Macro is also a new Android One smartphone
Next articleRedmi K20 Pro Gold Edition leaks in new images
He is so desperate to try Custom Roms such that tripped Knox of his brand new Galaxy within 24 Hrs of its purchase. Purely "flashaholic" and can torture his device to any extend for deadly customizations.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.