조회 : 330
<h1>MD5 해쉬 적용</h1>
md5 문자열 (32) : <?=md5($poi)?><br>
sha1 문자열 (40) : <?=sha1($poi)?><br>
crc32 문자열 : <?printf("%u
", crc32($poi));?><br><br>
iconv : <?
$iconv1 = iconv("ISO-8859-1","UTF-8",$poi);
$iconv2 = iconv("UTF-8","ISO-8859-1",$poi);
print("인코딩 : $iconv1 , 디코딩 : $iconv2 " );
?><br>
<hr>
bin2hex : <?
$bin2hex =base_convert($poi,2 ,16);
print($bin2hex);
?><br>
bindec : <?
$bindec =bindec($poi);
print($bindec);
?><br>
binoct : <?
$binoct =base_convert($poi,2 ,8);
print($binoct);
?><br>
<hr>
oct2bin : <?
$oct2bin =base_convert($poi,8 ,2);
print($oct2bin);
?><br>
oct2dec : <?
$oct2dec =base_convert($poi,8 ,10);
print($oct2dec);
?><br>
oct2hex : <?
$oct2hex =base_convert($poi,8 ,16);
print($oct2hex);
?><br>
<hr>
hexbin : <?
$hexbin =base_convert($poi,16,2);
print($hexbin);
?><br>
base_convert(16,2) : <?
$base_convert = base_convert($bin2hex,16,2);
print($base_convert);
?><br>
sprintf : <?
$sprintf = sprintf("%s",intval($poi,16));
print($sprintf);
?><br>
<? print(intval($poi,16)) ?><br>
sprintf : <?
$sprintf = sprintf("%d",$poi);
print($sprintf);
?><br>
utf8_decode ( hex to str ) : <?=utf8_decode($base_convert)?><br>
utf8_encode : <?=utf8_encode($poi)."[".bin2hex(utf8_encode($poi))."]"?><br>
iconv : <?printf(iconv("ISO-8859-1","UTF-8",$poi));?><br>
<form action="<?=$_SERVER['PHP_SELF']?>" method="get">
<p>적용할 문자열 :
<input name="poi" type="text" value="<?=$poi?>">
<input type="submit" name="Submit" value="해쉬값 계산">
</p>
</form>
| 제목 |
|---|
| [기본형] HTML (with 부트스트랩5.3 , jquery 3.7, vue.js) |
| 유용한 리눅스(LINUX) 명령어 |
| [공지] 기술 게시판 |
일 |
월 |
화 |
수 |
목 |
금 |
토 |
|---|---|---|---|---|---|---|
|
10.26
|
10.27
|
10.28
|
10.29
|
10.30
|
10.31
|
11.1
|
|
11.2
|
11.3
|
11.4
|
11.5
|
11.6
|
11.7
|
11.8
|
|
11.9
|
11.10
|
11.11
|
11.12
|
11.13
|
11.14
|
11.15
|
|
11.16
|
11.17
|
11.18
|
11.19
|
11.20
|
11.21
|
11.22
|
|
11.23
|
11.24
|
11.25
|
11.26
|
11.27
|
11.28
|
11.29
|
|
11.30
|
12.1
|
12.2
|
12.3
|
12.4
|
12.5
|
12.6
|