Javascript Linear Encryption by Jim Atkins
PROGRAM LINK
Download Link
This program uses an advanced linear math method cuppled with a login and keycode. Even with the decryption program one must have the login and keycode to decrypt. The amount of text or characters that can be encrypted depends on the power of your computer, I have encrypted text with thousands of characters. The longer the login name the stronger the encryption. Enter or paste text characters in top Text box and enter login name and keycode and click ENcrypt. There are no unallowed characters. Login name can be up to 14 Alpha characters. Keycode needs to be 6 numbers. Remember login and keycode. You will need them to Decrypt. Use the Reset link to re-enter data or before every encrypt or decrypt attempt!
Tested with IE6 and NS7. Status will not work in IE. -Any suggestions?- This program and code was authored by Jim Atkins and is shareware for personal use as long as this message stays intact. For commercial use please email me at
webadmin@jbatkins.com
or write me at PO Box 1393 Munford,TN 38058.
This program requires two seperate programs..JBAJSDEcryptv2.html-for decryption and JBAJSENcryptv2.html for encryption(and JS files for each).This program is as is...no warranty exists, implied or otherwise. When copying encryption it must be in tack as produced. If copied to text file that adds line breaks or emailed so that the encryption is re-formatted or if re-copied with with extra spaces at the end it will cause problems. There is no way to fix this, the encrypted code must remain as produced by the encryption program.
bugs fixes v1.1
Created a Reset so variables that were cached by browser would clear making it posiable
to do multible encrypt and decrypt sessions without closing browser each time.
Fixed the extra character being added at end if total message characters were an odd number.
This did not cause decrypting problems but makes it a cleaner running program.
bugs fixes v2
Fixed a lot of issues that speeded up the processing. I took out the packing of finished code, it was not that helpful. So the finshed code will be about double the original. If this tends to be a great issue I'll put it back.
I changed the code so it can accept any characters. I also created a third file that will auto-generate an encrypted WEB page. I changed the look a little and trimed down the code.
To use the program:
The encryption and decryption programs simply accept input in the approbriate text box and require a login name of up to 14 alpha characters along with a six digit keycode. Once you click ENCRYPT or DECRYPT the program will process and return the finished product in the approbriate text box. Encrypted text should be copied from the text box and either placed in the encrypted text box of decryption program or saved to a test file for later use. Code needs to be left intact - no re-formatting.
This program uses a list of reserved character sequences which means the following group of sequences should not be used. It is rare that these sequences would ever be used but I need to list these for information. Again, it is the sequence of characters for each group of characters not the characters themselves.
@$#@@1
@$$#@2
@$$$@3
@#$@$4
@#$$@5
@###@6
@#$#@7
@$#$@8
$@@@$9
$#@@$0
$##@$1
$###$2
$@##$3
$@@#$4
#$@$#5
##$@#6
#$@@#7
#@@$#8
@@#$$9
$##$@0
For the page creation program place your HTML page code in the approbriate text box and enter the login and keycode info. After you click submit the program will encrypt and place inside an HTML container file that will require the correct login and passcode to display. Just copy the code after the encryption is complete and place in a text file and name as you would your html file. The longer the file the longer it will take to encrypt and decrypt. My tests show an average page will decrypt in about 15 secs. Not practical for a whole Web Site but for a few sensitive pages this would be great. The file needs access to pageJBAJSENcryptv2.js to encrypt and pageJBAJSDEcryptv2.js to decrypt, all JS files are pathed to includes/. If the Dist.zip file is used to install program it needs to be placed in a directory and unzipped as is and the JS files will be placed properly. If moved to a Web Site just create an includes subdirectory in the folder that will hold the html files. Or change the pathing in the html files. This is client-side decryption which means NO decrypted information travels the internet.
This is shareware which means if you like it and use it pay me 10.00 for unlimited use but no modifications can be made. Payment can be made at-
http://www.jbatkins.com/payment.html Inculde your email in payment info and I'll send a link to a ZIP of all the HTML and JS files.