Interface FileHash
- All Known Implementing Classes:
BigFileHashHandler, FileHashHandler
public interface FileHash
The FileHash interface provides methods to compute various cryptographic hash
values (SHA-256, SHA-3,
and BLAKE_2B) for a given file. It serves as an abstraction layer for
different hashing algorithms
that can be used to verify file integrity or uniqueness.
-
Method Summary
Modifier and TypeMethodDescriptioncalculateBlake2bHash(File file) Calculates the Blake2B Hash of a filecalculateSha256Hash(File file) Calculates the SHA256 Hash of a filecalculateSha3Hash(File file) Calculates the SHA3 Hash of a fileGetAllHashes(File file) Calculates hashes of three different algorithms (SHA2,SHA3, BLAKE_2B) of a file
-
Method Details
-
GetAllHashes
Calculates hashes of three different algorithms (SHA2,SHA3, BLAKE_2B) of a file- Parameters:
file- to extract hash from- Returns:
- A wrapper object containing the file and the three resulting hash strings.
-
calculateSha256Hash
-
calculateSha3Hash
-
calculateBlake2bHash
-