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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4736 | jQuery | 8년 전 | 1560 | ||
| 4735 | jQuery | 8년 전 | 1747 | ||
| 4734 | jQuery | 8년 전 | 1737 | ||
| 4733 | jQuery | 8년 전 | 2034 | ||
| 4732 | jQuery | 8년 전 | 1955 | ||
| 4731 | jQuery | 8년 전 | 1459 | ||
| 4730 | jQuery | 8년 전 | 1917 | ||
| 4729 | PHP |
|
8년 전 | 6899 | |
| 4728 | jQuery | 8년 전 | 2562 | ||
| 4727 | jQuery | 8년 전 | 1610 | ||
| 4726 | jQuery | 8년 전 | 1690 | ||
| 4725 | jQuery | 8년 전 | 1834 | ||
| 4724 | jQuery | 8년 전 | 1311 | ||
| 4723 | jQuery | 8년 전 | 1862 | ||
| 4722 | jQuery | 8년 전 | 1627 | ||
| 4721 | jQuery | 8년 전 | 1917 | ||
| 4720 | jQuery | 8년 전 | 1976 | ||
| 4719 | jQuery | 8년 전 | 1601 | ||
| 4718 | jQuery | 8년 전 | 1607 | ||
| 4717 | jQuery | 8년 전 | 1558 | ||
| 4716 | jQuery | 8년 전 | 1237 | ||
| 4715 | jQuery | 8년 전 | 1394 | ||
| 4714 | jQuery | 8년 전 | 1416 | ||
| 4713 | jQuery | 8년 전 | 1334 | ||
| 4712 | jQuery | 8년 전 | 2227 | ||
| 4711 | jQuery | 8년 전 | 1712 | ||
| 4710 | PHP |
|
8년 전 | 3747 | |
| 4709 | jQuery | 8년 전 | 1629 | ||
| 4708 | jQuery | 8년 전 | 1909 | ||
| 4707 | jQuery | 8년 전 | 1762 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기