HMAC Hash Message Authentication Code Function

버전 1.7.0.0 (4.69 KB) 작성자: Peter Grunnet Wang
HMAC takes three inputs (key, message, hash method) and outputs hash message authentication code
다운로드 수: 1.8K
업데이트 날짜: 2014/4/11

라이선스 보기

HMAC(key,message,method)

INPUT
key: input secret key in char
message: input message in char
method: hash method, either:
'SHA-1', 'SHA-256', 'SHA-384', 'SHA-512'

OUTPUT
HMAC: Hash message authentication code value in upper case HEX.

You must download the DataHash.m function made by Jan Simon in order to use HMAC.m. It can be found here:

http://www.mathworks.com/matlabcentral/fileexchange/31272-datahash

If needed, you can verify your output here:

http://www.freeformatter.com/hmac-generator.html#ad-output

More information on HMAC here:

http://en.wikipedia.org/wiki/Hash-based_message_authentication_code

인용 양식

Peter Grunnet Wang (2025). HMAC Hash Message Authentication Code Function (https://kr.mathworks.com/matlabcentral/fileexchange/46182-hmac-hash-message-authentication-code-function), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2013a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.7.0.0

Removed MD2 and MD5 support.

1.6.0.0

Cleaned up code.

1.5.0.0

...

1.4.0.0

...more typos.

1.3.0.0

Typos.

1.2.0.0

Updated to support six various hash methods: SHA-1, SHA-256, SHA-384, SHA-512, MD2, MD5

1.1.0.0

Updated description.

1.0.0.0