First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
Search tutorials
Author: Iconoclast | Website: http://www.BleachEatingFreaks.com

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("http://yoursitehere.com/test.php", "_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 www.BleachEatingFreaks.com
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • 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

    Reply
  • 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: doc_chin7
» Description:

The flash's horizontal road drive was done in CS4 and was upgraded to CS6. The car responds to right/ left key and flash will auto-generate the movement of roads from left-right or right-left based on random number. Have fun driving in this virtual environment and avoid other cars... :) If you are creative, a road driving game can be created from it.

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.