anadius / gd-efc

Google Drive - encrypted folder copy
https://anadius.github.io/gd-efc/
383 stars 176 forks source link

"Cannot read property 'importKey' of undefined" #12

Closed MineRock closed 3 years ago

MineRock commented 3 years ago

So in "https://anadius.github.io/gd-efc/build.html", I put in my server, it generated the key, I used PHP and disabled worker.js. Uploaded to drive. But it gives me the above error when trying to put in the gdrive link and clicking encrypt. Help?

MineRock commented 3 years ago

image

anadius commented 3 years ago
  1. Don't host the encrypt.html file on your server. It contains the encryption key in plain text. Once someone reads it they can decrypt all your links and get the real URL. If you want to let people encrypt links from your server then check the right box on the build page.
  2. Files must be hosted on HTTPS. That's a limitation of JavaScript. It requires HTTPS to use the cryptographic functions (like crypto.subtle.importKey).
MineRock commented 3 years ago

alright thanks