Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / www / html / sman1baleendahok / functions / | server ip : 172.67.156.115 your ip : 172.71.254.102 H O M E |
Filename | /var/www/html/sman1baleendahok/functions/fungsi_pass.php |
Size | 525 |
Permission | rw-rw-r-- |
Owner | ulung : ulung |
Create time | 27-Apr-2025 11:12 |
Last modified | 05-Feb-2025 08:55 |
Last accessed | 06-Jul-2025 20:20 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
function hex($str='',$code='') {
if(($code>=0)and($code<100)) {
$t .=dechex(strlen($str)+$code)."g";
$str=strrev($str);
for($i=0;$i<=strlen($str)-1;$i++) {
$t .=dechex(ord(substr($str,$i,1))+$code);
}
}
return $t;
}
function unhex($str='',$code='') {
$all=explode("g",$str);
$head=hexdec($all[0])-$code;
$content=$all[1];
if($head==(strlen($content)/2)) {
for($i=0;$i<=$head-1;$i++) {
$t .=chr(hexdec(substr($content,$i*2,2))-$code);
}
$t =strrev($t);
}
return $t;
}
?>
function hex($str='',$code='') {
if(($code>=0)and($code<100)) {
$t .=dechex(strlen($str)+$code)."g";
$str=strrev($str);
for($i=0;$i<=strlen($str)-1;$i++) {
$t .=dechex(ord(substr($str,$i,1))+$code);
}
}
return $t;
}
function unhex($str='',$code='') {
$all=explode("g",$str);
$head=hexdec($all[0])-$code;
$content=$all[1];
if($head==(strlen($content)/2)) {
for($i=0;$i<=$head-1;$i++) {
$t .=chr(hexdec(substr($content,$i*2,2))-$code);
}
$t =strrev($t);
}
return $t;
}
?>