Php encryption program. Php encryption program? Php encryption functionjiami ($ data, $ psw) {for ($ i0, $ j0; $ istrlen ($ data); $ I ++, $ j ++) {$ middleord (substr ($ data, $ I, 1) + ord (substr ($ psw, $ j, 1); if ($ jstrlen ($ psw )) php encryption program
// Encryption
Function jiami ($ data, $ psw ){
For ($ I = 0, $ j = 0; $ I $ Middle = ord (substr ($ data, $ I, 1) +
Ord (substr ($ psw, $ j, 1 ));
If ($ j> strlen ($ psw )){
$ J = 0;
}
$ Str. = chr ($ middle );
}
Return ($ str );
}
// Decrypt
Function jiemi ($ data, $ psw ){
For ($ I = 0, $ j = 0; $ I $ Middle = ord (substr ($ data, $ I, 1 ))-
Ord (substr ($ psw, $ j, 1 ));
If ($ j> strlen ($ psw )){
$ J = 0;
}
$ Str. = chr ($ middle );
}
Return ($ str );
}
?>
This is the encryption program of a netizen on a website.
Why? Php // encryption function jiami ($ data, $ psw) {for ($ I = 0, $ j = 0; $ istrlen ($ data); $ I ++, $ j ++) {$ middle = ord (substr ($ data, $ I, 1) + ord (substr ($ psw, $ j, 1 )); if ($ j strlen ($ psw ))...