 <Script LANGUAGE="JavaScript">   //Vigenre Cipher Script3 //Script Copyright 1999 Azrael, All Rights Reserved 6 //In other words, don't take this and say it is yours!C //Also, don't even take this.  You must ask for permission from me. > //You can contact me at azrael@wwdg.com to request permission.   function vencrypt() { % 	thekey = document.vform.thekey.value .         themessage = document.vform.text.valueD 	var encryptedkey = "" //put this in the function to avoid recursionO         var encryptedmessage = "" //put this in the function to avoid recursion  	var finalencrypted = "" 	var sub1 = "" 	var sub2 = ""
 	var j = 0 	var encrypted = "" n 	var thelist = "!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ "* 	for (i = 0; i < themessage.length; i++) {2 		keycharacter = thelist.indexOf(thekey.charAt(j)): 		messagecharacter = thelist.indexOf(themessage.charAt(i))6 		encryptedcharacter = messagecharacter + keycharacter: 		if(encryptedcharacter > 93) { encryptedcharacter -= 93 } 		sub1 = encryptedcharacter ! 		sub2 = (encryptedcharacter + 1) , 		encrypted = (thelist.substring(sub1,sub2)); 		var encryptedArray = new Array(finalencrypted, encrypted) M                 var finalencrypted = encryptedArray.join("") //Join the Array  		j++ " 		if(j >= thekey.length) { j = 0 } 	}+ 	document.vform.text.value = finalencrypted  }    function vdecrypt() { % 	thekey = document.vform.thekey.value .         themessage = document.vform.text.valueD 	var decryptedkey = "" //put this in the function to avoid recursionO         var decryptedmessage = "" //put this in the function to avoid recursion  	var finaldecrypted = "" 	var sub1 = "" 	var sub2 = ""
 	var j = 0 	var decrypted = "" n 	var thelist = "!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ "* 	for (i = 0; i < themessage.length; i++) {2 		keycharacter = thelist.indexOf(thekey.charAt(j)): 		messagecharacter = thelist.indexOf(themessage.charAt(i))6 		decryptedcharacter = messagecharacter - keycharacterM 		if(decryptedcharacter < 0) { decryptedcharacter = 93 + decryptedcharacter }  		sub1 = decryptedcharacter ! 		sub2 = (decryptedcharacter + 1) , 		decrypted = (thelist.substring(sub1,sub2)); 		var decryptedArray = new Array(finaldecrypted, decrypted) M                 var finaldecrypted = decryptedArray.join("") //Join the Array  		j++ " 		if(j >= thekey.length) { j = 0 } 	}+ 	document.vform.text.value = finaldecrypted  }   	 </SCRIPT>      <FORM NAME="vform">  The Key:<br>* <INPUT TYPE="text" NAME="thekey" VALUE=""> <p>  The Message:<br>2 <INPUT TYPE="TEXT" NAME="text" VALUE="" SIZE="40"> <br>= <INPUT TYPE="button" onClick="vencrypt()" VALUE="Encrypt It"> = <INPUT TYPE="button" onClick="vdecrypt()" VALUE="Decrypt It"> " <INPUT TYPE="reset" VALUE="Reset"> </FORM> 