Calculates the Digital Signature of a true-color image,
Using the SHA algorithm
%function [digest, MSG_PADDED] = image_hash(V_LEN,H_LEN,METH,IMG_FILE)
%Generates IMAGE Digest or HASH using algorithms : SHA1, SHA-224, SHA256
%Uses matlab program "hash.m" developed by Kshitish
%
%H_LEN :: Enter No. of PIXEL Lines in the Image should be GT 0
%V_LEN :: Enter No. of PIXELs per Line in the Image should be GT 0
%METH :: SHA160, SHA224,SHA256,SHA384,SHA512
%IMAGE_FILE :: (only) True-color image file (in single quotes')
%
% -- Verfied variables (a, b,c,d,e) over 80 rounds against
% FIPS-180-2 examaples
% -- I dont Guarantee, if threatened by
% BIT Resolution/overflow/underflow
%
% -- Kshitish says GoodBye ...
%
% end
Cite As
khitish (2025). generate digital signature of Images (https://se.mathworks.com/matlabcentral/fileexchange/45038-generate-digital-signature-of-images), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Morphological Operations >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
image_hash/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
