sha1 - 문자열의 sha1 해시 계산
sha1 - 문자열의 sha1 해시 계산
경고
이 해시 알고리즘의 빠른 특성으로 인해이 함수를 사용하여 암호를 보호하는 것은 좋지 않습니다. 자세한 내용 및 모범 사례 는 암호 해싱 FAQ 를 참조하십시오.
설명 ¶
string sha1 ( string $str [, bool $raw_output= false ])
»US Secure Hash Algorithm 1 을 str사용하여 sha1 해시를 계산 합니다.
매개 변수 ¶
str
입력 문자열.
raw_output
선택적 raw_output으로 설정 TRUE하면 sha1 다이제스트는 길이가 20 인 원시 바이너리 형식으로 반환되고, 그렇지 않으면 반환 값은 40 문자 16 진수입니다.
반환 값 ¶
sha1 해시를 문자열로 반환합니다.
예 ¶
Example # 1 sha1 () 예제
<?php
$str = 'apple';
if (sha1($str) === 'd0be2dc421be4fcd0172e5afceea3970e2f3d940') {
echo "Would you like a green or red apple?";
}
?>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4556 | jQuery |
프로그래머7
|
8년 전 | 1693 | |
| 4555 | jQuery |
프로그래머7
|
8년 전 | 1612 | |
| 4554 | jQuery |
프로그래머7
|
8년 전 | 1666 | |
| 4553 | jQuery |
프로그래머7
|
8년 전 | 2044 | |
| 4552 | PHP | 8년 전 | 1885 | ||
| 4551 | PHP | 8년 전 | 1472 | ||
| 4550 | PHP | 8년 전 | 1711 | ||
| 4549 | jQuery |
프로그래머7
|
8년 전 | 2747 | |
| 4548 | jQuery |
프로그래머7
|
8년 전 | 1447 | |
| 4547 | jQuery |
프로그래머7
|
8년 전 | 1369 | |
| 4546 | jQuery |
프로그래머7
|
8년 전 | 1686 | |
| 4545 | jQuery |
프로그래머7
|
8년 전 | 1713 | |
| 4544 | jQuery |
프로그래머7
|
8년 전 | 1868 | |
| 4543 | jQuery |
프로그래머7
|
8년 전 | 1656 | |
| 4542 | jQuery |
프로그래머7
|
8년 전 | 1587 | |
| 4541 | jQuery |
프로그래머7
|
8년 전 | 1635 | |
| 4540 | jQuery |
프로그래머7
|
8년 전 | 1668 | |
| 4539 | jQuery |
프로그래머7
|
8년 전 | 1867 | |
| 4538 | jQuery |
프로그래머7
|
8년 전 | 1538 | |
| 4537 | jQuery |
프로그래머7
|
8년 전 | 1700 | |
| 4536 | jQuery |
프로그래머7
|
8년 전 | 1939 | |
| 4535 | jQuery |
프로그래머7
|
8년 전 | 1526 | |
| 4534 | jQuery |
프로그래머7
|
8년 전 | 1859 | |
| 4533 | jQuery |
프로그래머7
|
8년 전 | 2349 | |
| 4532 | jQuery |
프로그래머7
|
8년 전 | 1921 | |
| 4531 | PHP |
|
8년 전 | 3718 | |
| 4530 | jQuery |
프로그래머7
|
8년 전 | 1803 | |
| 4529 | jQuery |
프로그래머7
|
8년 전 | 1905 | |
| 4528 | jQuery |
프로그래머7
|
8년 전 | 1703 | |
| 4527 | jQuery |
|
8년 전 | 2703 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기