javascript - Custom JS encryption algorithm over http? -
i know secure way of transmitting data between client , server https i've been wondering, encrypting user input before sending server (ajax) work? , server process accordingly... see no way, if sniffs encrypted data decrypt it, example enigma encryption method used, though decrypted, methods can change.
so work , concerns be?
thanks!
first, should know https serves more 1 purpose. in addition encryption, there verification server (and client in cases) think talking client think talking to. should use https needs secure.
now, if academic reasons or specific use case want use encryption javascript, yes entirely possible. recommend asymmetric algorithm, rsa. there javascript implementations of it. key encrypting different key decrypting. because of this, if encryption key known (and if packet sniffing, be), eavesdroppers won't able decrypt data.
here's javascript implementation i've used before purpose: http://www.ohdave.com/rsa/
just remember... chances of making mistake high. using https, using heavily tested implementations security experts, , don't have reinvent wheel. use there if @ possible.
Comments
Post a Comment