PHP hash hmac()

Jmnote (토론 | 기여)님의 2016년 3월 4일 (금) 15:41 판 (→‎같이 보기)

1 개요

hash_hmac()
echo hash_hmac('ripemd160', 'The quick brown fox jumped over the lazy dog.', 'secret');
# b8e7ae12510bdfb1812e463a7f086122cf37e4f7
echo hash_hmac( 'sha1', 'hello world', 'secret' );
# 03376ee7ad7bbfceee98660439a4d8b125122a5a
$h = hash_hmac( 'sha1', 'hello world', 'secret', true );
echo base64_encode( $h );
# Azdu5617v87umGYEOaTYsSUSKlo=

2 같이 보기

3 참고 자료

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