Piet van Zanten
encryption December 16, 2008 01:50PM |
function encode5t($str) { for($i=0; $i<5;$i++) { $str=strrev(base64_encode($str)); //apply base64 first and then reverse the string } return $str; }To decode there's a similar function that reverses the process.
Alexandre Leclerc
Re: encryption December 16, 2008 04:50PM |
s is string = Crypt("This is an encoded string","",cryptNone,encodeBASE64) Trace(s) Trace(s="VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==") // [ca.php.net] Trace(Uncrypt(s,"",cryptNone,encodeBASE64))
Piet van Zanten
Re: encryption December 16, 2008 06:00PM |
x=edt_Edit1 FOR i=1 TO 5 y=Crypt(x,"",cryptNone,encodeBASE64) x="" FOR j=Length(y) TO 1 STEP -1 x+=y[[j]] END ENDedt_Edit2=x