Contents
- You are checking the bytes of a specific file
- Get the correct expected value
- Android: prepare a trusted local Termux
- Android: calculate hash of real local copy
- iOS and iPadOS: local iSH shell and custom file access
- Don't accidentally count the title text, URL, or remote copy
- The discrepancy should be a trigger for diagnosis
- Record the result without publishing the file
- Frequently asked questions
App screenshots

You are checking the bytes of a specific file
SHA-256 and SHA-512 create a cryptographic fingerprint of the content. When verifying a downloaded file, you calculate the chosen hash of the local copy and compare it to the expected value. The file name, location, and current date are not the only inputs to this calculation. So a different name can have the same hash, while a single changed byte leads to a different result.
First, confirm the algorithm, specific edition, and architecture. SHA-256 is commonly written as 64 hexadecimal characters, SHA-512 as 128. You cannot compare a part of one to the whole of the other. Additionally, the designation SHA-512/256 represents a different hash function, not just a different way of displaying the usual SHA-512.
Mobile verification can be done locally and does not require uploading content to the web. However, CH-J Tools Mobile 0.0.4 does not have a separate universal Hash & Checksum tool for local files. Therefore, the following procedures use a different specific environment. Do not mistake the internal hash in the editor or the button from the desktop application for an available mobile panel.
Get the correct expected value
Look for the checksum on the official specific artifact or in the corresponding publisher list. The APK, AAB, source archive, and installation image have different bytes and different fingerprints, even if they indicate the same product version. For a web download, check to see if you received an error HTML page or an older file with the same name.
A match demonstrates the practical consistency of the content given the procedure used, but does not itself verify the author. If an attacker can replace both the file and the published checksum, they may agree. You need a trusted source of value for the origin of the data, or a verified digital signature. For a signed list, first verify the list signature and then the hash of the file itself.
Copy the expected value in full and be careful not to visually truncate a long line. The difference in the size of the hexadecimal letters can be normalized when comparing, but no characters must be missing. It is not enough to compare just the beginning and end, even if the whole number does not fit comfortably on the display.
Android: prepare a trusted local Termux
One option is Termux from the officially described distribution channel. Keep your installation and updates in a compatible channel according to the project's instructions; don't compile random packages from unknown websites. Before using sensitive files, make sure you are working in the local terminal of your phone, not in an open SSH session on another machine.
For SHA tools, you can use the coreutils package in Termux. The following commands will install it as needed and expose the system-enabled shared storage. Granting access is a conscious extension of the application's permissions; if you don't want it, pass the file under test to its supported private space via another controlled route.
# V místním Termuxu na Androidu:
pkg install coreutils
termux-setup-storage
ls -l "$HOME/storage/downloads"Confirm the system requirement according to the current version of Android and Termux. For a cloud document or file outside the shared storage, there may not be a corresponding common path. Do not resolve the denial by granting permissions to all applications in a blanket manner. First, find out the actual location and method of passing the selected document.
Android: calculate hash of real local copy
Find the exact file in the list and check its size. The following name balicek.bin is an example; replace it with the actual name. The quotes preserve the path with spaces as a single argument. Do not use an asterisk instead of a file if you need to uniquely verify a single copy.
sha256sum "$HOME/storage/downloads/balicek.bin"
sha512sum "$HOME/storage/downloads/balicek.bin"Each command prints the hash and input identification. Select the result for the algorithm published by the publisher and compare the entire fingerprint. If the command reports a missing file or insufficient permissions, the requested content was not verified. Do not substitute empty or truncated output for a size estimate.
When you want to verify a different file, change the path, not the algorithm, based on what just came out. Clearly label the results for different local copies. It's easy to recalculate the original corrupted copy after downloading it under a different name. So confirm the path and data before trying again.
iOS and iPadOS: local iSH shell and custom file access
iSH provides a local Linux shell environment on iOS and iPadOS using emulation. It is not an SSH terminal running on a remote server. Install it from the official source and check the current capabilities of the environment. You do not need to install third-party pre-built images with a lot of tools to verify.
In System Files, access the iSH location according to its documentation, and copy the file under test to a directory that the local shell can access, such as your home directory. Then find it in iSH using pwd and ls. The exact location and item names may vary; do not run the command on the estimated path without checking.
# V místním iSH, nikoli v SSH relaci:
pwd
ls -l
command -v sha256sum
command -v sha512sum
sha256sum ./balicek.bin
sha512sum ./balicek.binThe availability of commands depends on the installed environment. BusyBox supports the appropriate applets depending on the build; missing GNU variants can be added with the coreutils package via the environment's package manager. For standard Alpine, an example is apk add coreutils. This is a Linux package manager, not an Android APK installation on an iPad. Check local support and repositories first.
Don't accidentally count the title text, URL, or remote copy
The graphical tool or automation must process the content of the selected document, not the string with its name. The hash of the text balicek.bin is a different value than the hash of the file with that name. Similarly, the URL hash does not verify the bytes downloaded. If you are unsure of the input, start with a harmless file with known content and compare with another local tool.
A server command given over SSH reads a file on the server. It may be correct for checking a remote upload, but it does not prove the state of the copy currently stored on the phone. Likewise, the hash of the unpacked file is not the hash of the original archive. When passing the result, always write which copy and which representation you actually measured.
If you must move the file to a hashing application, preserve the exact bytes. Opening and resaving in a text editor may change the encoding or line endings. For binary data, use a file copy. When making a major decision, make sure you are using the copy whose integrity you have checked.
The discrepancy should be a trigger for diagnosis
First, confirm the algorithm, version, architecture, name, and source of the expected value. Then, check the completeness of the download and whether the archive was automatically extracted or the document was converted. A new download from a trusted source may resolve the broken transfer, but will not fix the comparison of two different releases.
Do not install an unverified package just because a few hash characters differ. The severity of the content change cannot be reliably estimated from the number of different characters. Repeated non-conformance requires an explanation or other credible verification path. Do not overwrite the expected value with a result just to make the next check pass.
For large data, let the local tool complete the calculation and consider capacity, memory, and background application behavior. This article does not provide measured performance for iSH or Termux. For many gigabytes, another trusted workflow that still checks for the correct, specific copy of the file may be more practical.
Record the result without publishing the file
The working record only needs to include the precise identification of the artifact, the algorithm, the calculated fingerprint, the source of the expected value, and the comparison result. Do not send private content to an unknown online calculator for this reason. By sending the file to the service, you would be solving a simple local calculation at the cost of making its data available to a third party.
- The contents of the correct local copy were counted.
- The algorithm corresponds to the published value.
- All fingerprint features were compared.
- The reliability of the expected checksum was assessed separately.
- Compliance was not confused with a digital signature or a guarantee of integrity.
Local verification is useful precisely because of its uniqueness. You know which file entered the calculation and what you compared the result to. If any step is unclear, fix it first. A hash is an accurate tool, but it only gives an accurate answer to the question of the actual bytes selected.
Frequently asked questions
Does CH-J Tools Mobile 0.0.4 have a local hash panel?
It does not have a separate universal Hash & Checksum panel. Please use another verified local tool for the described procedure.
Can I compare SHA-256 and SHA-512?
No. The algorithm and the entire corresponding fingerprint must match.
Will the server verify the sha256sum file on my phone?
No. In a normal SSH implementation, it counts the file available on the remote server.
Does a matching hash prove a trustworthy author?
Not a match by itself. You also need a trusted origin of the expected value or a verified signature.
Detailed documentation
Termux: official installation and distribution channels →
Termux: GNU coreutils package →
Termux: making shared storage available →
iSH: a local Linux environment for iOS and iPadOS →
BusyBox: SHA-256 and SHA-512 commands →