update : 2015.11.03
php.shukuma.com검색:
|
hash_equals(PHP 5 >= 5.6.0) hash_equals — Timing attack safe string comparison 설명
bool hash_equals
( string
$known_string
, string $user_string
)Compares two strings using the same time whether they're equal or not. This function should be used to mitigate timing attacks; for instance, when testing crypt() password hashes. 인수
반환값
Returns 오류/예외
Emits an 예제
Example #1 example
<?php 위 예제의 출력: bool(true) bool(false) 주의
|