-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnk26.php
More file actions
35 lines (29 loc) · 1.91 KB
/
nk26.php
File metadata and controls
35 lines (29 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
// bismillah mulai nk26
function nk26_encode($data) {
$a = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ' ');
// \ \ \
$b = array('2', '3', '4', '5', '6', '7', '8', '9', '12', '13', '14', '15', '16', '17', '18', '19', '112', '113', '114', '115', '116', '117', '118', '119', '1112', '1113', '0');
return str_replace($a, $b, $data);
}
function nk26_encode_safe($data) {
$data = strtolower($data);
$a = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ' ');
// \ \ \
$b = array('2', '3', '4', '5', '6', '7', '8', '9', '12', '13', '14', '15', '16', '17', '18', '19', '112', '113', '114', '115', '116', '117', '118', '119', '1112', '1113', '0');
return str_replace($a, $b, $data);
}
function nk26_decode($data) {
$a = array('y', 'z', ' ');
$b = array('1112', '1113', '0');
$data = str_replace($b, $a, $data);
$a = array('q', 'r', 's', 't', 'u', 'v', 'w', 'x');
$b = array('112', '113', '114', '115', '116', '117', '118', '119');
$data = str_replace($b, $a, $data);
$a = array('i', 'j', 'k', 'l', 'm', 'n', 'o', 'p');
$b = array('12', '13', '14', '15', '16', '17', '18', '19');
$data = str_replace($b, $a, $data);
$a = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h');
$b = array('2', '3', '4', '5', '6', '7', '8', '9');
return str_replace($b, $a, $data);
}