开发者

encrypt form post data before jQuery serialize

I am using ajax form submit. Here, i am using jQuery serialize.I like to encrypt(like md5) the data before submitting. How can i do this

my code

 var Data = $('#formid').serialize();
    $.post(url,  Data); 

Thanks开发者_JS百科


Sounds like you are looking for SSL technology - in which case it will be seamless.

You don't code it - the browser will handle the encryption by itself.

See http://learn.iis.net/page.aspx/144/how-to-set-up-ssl-on-iis-7/ for how to configure IIS to manage SSL.


Helpful advice.

MD5 is not really an encryption, but a one way hashing mechanism.

There is no (reliable) way to decrypt it.

The only real advantage of it is to compare the hash to other data that has been hashed in the same way.

MD5 in JavaScript?

There is no way to do it natively, but functions exist.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜