SHA Algorithms 160,224,256,384.512
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
end
Cite As
khitish (2023). SHA Algorithms 160,224,256,384.512 (https://www.mathworks.com/matlabcentral/fileexchange/31795-sha-algorithms-160-224-256-384-512), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Code Generation > Fixed-Point Designer > Get Started with Fixed-Point Designer >
- FPGA, ASIC, and SoC Development > Fixed-Point Designer > Get Started with Fixed-Point Designer >
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.
sha/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |