First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Iconoclast | Website:

The encryption algo I chose was the simple XOR encryption. It's not strong, but then again, if you wanna code a better version then feel free.

strText resembles the text you would like to keep intact
strPW is the password you will use.

Essentially, what happens, is the ASCII is XORed against the password, until all the text is broken into a numeric encrypted array and then posted to whichever site.

strText = "This is the holder text";
strPW = "password";
encText = "";
pwLength = strPW.length;

//XOR crypt the strText with the strPW
//and insert everything into a comma delimitated array of numbers
for (x=0; x<strText.length; x++) {
	i = (i%pwLength)+1;
	encText += (Number(strText.charCodeAt(x) ^ strPW.charCodeAt(i-1)));
	encText += ",";

//delete the password from being posted in plaintext
strPW = "";
strText = "";
//post the data
getURL("", "_self", "POST");

On the other side, the PHP code catches and decrypts the post

strText = $strText";

now you can use a function like is_numeric to make sure the integrity of your encrypted data has been kept. Or you could you an MD5 system.

Hope this helps with your score posts!

» Level Intermediate

Added: 2003-09-21
Rating: 7 Votes: 18
(10 being the highest)
» Author
Programmer for
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • Hello, Each guy

    Posted by migJarZoborma on 11/22/2012 08:20am

    Hi, Everyone I am a greenhand here.I Will appreciate your entire assist. Thanks

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.