"PHP random bytes()"의 두 판 사이의 차이

(새 문서: ==개요== ;PHP random_bytes() <source lang='php'> $bytes = random_bytes(5); var_dump(bin2hex($bytes)); # string(10) "385e33f741" </source> ==참고 자료== * http://php.net/manual...)
 
7번째 줄: 7번째 줄:
# string(10) "385e33f741"
# string(10) "385e33f741"
</source>
</source>
==같이 보기==
* [[PHP random_int()]] - 암호학적으로 안전한 의사-랜덤 정수 생성
* [[PHP openssl_random_pseudo_bytes()]] - 의사-랜덤 바이트 문자열 생성
* [[PHP bin2hex()]] - 바이너리를 16진 표현을 변환
* [[라라벨 str_random()]]


==참고 자료==
==참고 자료==

2016년 10월 17일 (월) 19:03 판

1 개요

PHP random_bytes()
$bytes = random_bytes(5);
var_dump(bin2hex($bytes));
# string(10) "385e33f741"

2 같이 보기

3 참고 자료

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