generate digital signature of Images

Version 1.0.0.0 (6.27 MB) by khitish
hash of images
918 Downloads
Updated 15 Jan 2014

View License

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
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0