함수 hash hmac()

Jmnote (토론 | 기여)님의 2016년 3월 3일 (목) 17:01 판 (→‎PHP)
hash_hmac()

1 PHP

echo hash_hmac('ripemd160', 'The quick brown fox jumped over the lazy dog.', 'secret');
// b8e7ae12510bdfb1812e463a7f086122cf37e4f7

2 Python

import hmac
import base64
h = hmac.new('hello world').digest()
print( base64.b64encode( h ) )
# sGXfsWEMawIp9we7B/iuuA==

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}