active changing fields

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
bucany
Forum Newbie
Posts: 3
Joined: Wed Mar 21, 2012 3:34 pm

active changing fields

Post by bucany »

hello,
i have a little problem with the function, which will make me from am encrypted text decrypted text--website url
etc: from DJ373937JDNJDKCNDJDKFJWUALXMVNWPQORJ6373849 is google.com

so...how tomake this function reversed? from website url into encrypted text....


i was thinking about that, and i have got 1 solution...
i dont know if i write it right, in english, because i am not from there, i learn it only........

on the page would be 2 fields..textareas
into 1st of them i would give that encrypted text and without refreshing page it would decrypt into website url
and if i would paste that encrypted code into 2nd field, in 1st will be shown an encrypted text...

it is possible?
thank for reading and helping
and sorry for my english :-\ :-[
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: active changing fields

Post by requinix »

Yes. If you know the encryption algorithm.

What is this for?
bucany
Forum Newbie
Posts: 3
Joined: Wed Mar 21, 2012 3:34 pm

Re: active changing fields

Post by bucany »

Code: Select all

function return_values_back($code) { 
$varray=array("keyts","username","password","domain","ptc","se","ptp","ptr","ht","ptra","ce","ptsu","aist","investtoken","claim_bonus","rentrefs");

$chars=strlen($code);

for($x=0; $x<ceil($chars/7); $x++){
$sets1[$x]=substr($code, ($x*7), 7); }

for($x=0; $x<count($sets1); $x++){
$newset[$x]=strrev($sets1[$x]); } 
$imploded=implode("",$newset);



$charse=strlen($imploded);

for($yx=0; $yx<ceil($charse/5); $yx++){
$setas1[$yx]=substr($imploded, ($yx*5), 5); }

for($yx=0; $yx<count($setas1); $yx++) {
$newseat[$yx]=strrev($setas1[$yx]); }
$theend=implode("",$newseat);


$key = base64_decode($theend);
$temp = explode(":",$key);
for($x=0; $x<count($temp); $x++) {
if($varray[$x] != "") { $return[$varray[$x]]=$temp[$x]; }
  } 
return $return;

} 


that is the function which i mean.....
now it will decrypt text so how to edit it, to encrypt the text?
exactly, i need domain encryption

thanks

sorry for my really bad englih :-[
Post Reply