31 | 07 | 2010
Main Menu
Affiliates
Login Form



Alexa
JoomlaWatch Stats 1.2.6 by Matej Koval
An Introduction To jCryption- The JavaScript Encryption Library
Written by Phoenix   
Sunday, 06 September 2009 13:47

Rating 0.0/5 (0 vote)

Encryption is the most sought technique in this web world. Th problems of SSL can now be overcome with a new JavaScript library for encryption, jCryption.

 

What is jCryption?

jCryption is a javascript HTML-Form encryption plugin, which encrypts the POST/GET-Data that will be sent when you submit a form. It uses the Multiple-precision and Barrett modular reduction libraries for the calculations and jQuery for the rest. jCryption is completly free and dual licensed under the MIT and GPL licenses like jQuery. Normally if you submit a form and you don’t use SSL, your data will be sent in plain text. But SSL is neither supported by every webhost nor it’s easy to install/apply sometimes. So I created this plug-in in order that you are able to encrypt your data fast and simple. jCryption uses the public-key algorithm of RSA for the encryption. jCryption at it’s current state is no replacement for SSL, because there is no authentication, but the main goal of jCryption should be a very easy and fast to install plugin which offers a base level of security.

 

How does jCryption work?
jCryption first serializes the form, converts the string into hexadecimal values which is required to encrypt it. When the keypair was generated on the server, the script receives it, encrypts the string with the public key and sends it to the sever where the string will be decrypted. When this is done you have your original serialized string back which is equal to a normal form submit (GET or POST). So jCryption encrypts on the client with javascript and decrypts on the server with PHP.

   

Why Do I Need jCryption?
In my opinion jCryption is much easier to install and configure. Although I don’t think that jCryption is a replacement for SSL. It could be a nice addtion for your contact form or login page to simply make it more secure. If you need highest security you have to use SSL, because jCryption offers no way of authentication.

 

Examples Of jCryption.

Simple demo »

This is the standard setup.
You have to adjust nothing if you have a normal HTML form.

Just call jCryption on your form.

$("#normal").jCryption();

demo »

Submit event demo »

If you dont have a “normal” input type=”submit” button, you can select any DOM element with a jQuery selector.

You can even change the event which triggers the form submit.
In this example the form will be submited if you double click the submit link.

$("#noSubmitbutton").jCryption({
submitTrigger:"#submitButton",
submitEvent:"dblclick"
});

demo »

 

See More Examples at the official jCryption Website

 

jCryption Documentation

jCryption consists of funcrions that you can incorporate with ease to attain safe and easy encryption of data. Check out the whole documentation here.

 

Where can I get jCryption?

Download jCryption from the official site. You can get jCryption here

 

Comments
Search
Only registered users can write comments!

3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."