SHA Algorithms 160,224,256,384.512

Version (7.79 KB) by khitish
Implements all of SHA ALgorithms, SHA160,SHA224,SHA256,SHA384,SHA512


Updated 14 Jun 2011

View License

Generates Message Digest using algorithms : SHA160, SHA-224, SHA256,SHA384,SHA512
Support for Bit Oriented Message
-- Enter Message Length in Bits
-- Either enter Message (HEX) or
-- generate a random message of length LEN in Bits
-- Select the Algorithm to generate MESG DIGEST

LEN :: Enter Bit Oriented Message Length
should be GT 0

METH :: SHA1, SHA224,SHA256,SHA384,SHA512

GEN :: 0 --> enter the MESG (in HEX) or

Limitation :: Matlab cannot read characters if MSG_LEN > 2^12
----- directly assign MSG to msg_str if MESG_LENGTH > 2^12

1 --> this HASH function generates a psuodorandom
mesg. of length LEN bits
<> No. of Bits in MESG should be GT LEN
<> AT the CMD prompt dont give any spaces
<> while entering HEX MESG

-- < Remember KEY to SECURITY Algorithms are modular Arithmetic >

-- Kshitish


Cite As

khitish (2023). SHA Algorithms 160,224,256,384.512 (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
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