简体   繁体   中英

How to encrypt a file using javascript or jquery

Is it possible to encrypt a file using jquery or javascript? For example. If I have created a file using test.xml. I want to encrypt a file test.xml.

If it is possible encrypted, so how can i decrypt it again?

Regard

I guess I didn't get what you want.

If you want a encrypted tunnel on your app, you should use https

If you want to write a program in javascript that encrypts a file in your server by the client side, the most you can do is get this file's content using ajax, encrypt (to text), and send back.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM