470,618 Members | 1,822 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,618 developers. It's quick & easy.

en- and decrypting

Hi Guys,

i've found a small java script function that simple
decrypts some encodedtext to plaintext.

function decrypt(t,k){
var y=0;
var r='';
t=unescape(t);
for (i=0;i<t.length;i++){
x=k.charCodeAt(y);
x2=t.charCodeAt(i);
if(x!=x2){
r=r+String.fromCharCode(x2^x);
}';x+='else{
r=r+String.fromCharCode(x);
}
y++;
if(y==k.length){
y=0;
}
}return(escape(r));
}

the problem is that i don't have the
encrypt function. i tried it by my own,
but i'm a noob using javascript in this way

can somebody help me to write this
encrypt function?
regards
Jul 23 '05 #1
1 1147
checksumde wrote:
Hi Guys,

i've found a small java script function that simple
decrypts some encodedtext to plaintext.


Have you seen these?

http://javascript.internet.com/passw...cryption4.html

http://www.aardwulf.com/cipher/aardSaber.asp

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Alessandro Bottoni | last post: by
3 posts views Thread by JW | last post: by
reply views Thread by cmrchs | last post: by
1 post views Thread by Yair Nissan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.