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: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
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: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.