How can I encrypt/decrypt arbitrary binary files using Javascript in the browser?

后端 未结 2 1760
傲寒
傲寒 2021-02-09 17:55

I need to let users load files from their system, encrypt them on-the-fly and upload to the server and do the opposite thing (download files from the server, decrypt on the fly

2条回答
  •  难免孤独
    2021-02-09 18:28

    See https://github.com/meixler/web-browser-based-file-encryption-decryption for an example showing encryption/decryption of arbitrary binary files using Javascript in the web browser, based on the Web Crypto API.

提交回复
热议问题