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
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.
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.
There is no way to do it natively, but functions exist.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With