Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MineRock opened this issue May 10, 2021 · 3 comments
Closed

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

MineRock opened this issue May 10, 2021 · 3 comments

Comments

@MineRock
Copy link

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
Copy link
Author

image

@anadius
Copy link
Owner

anadius commented May 10, 2021

  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).

@anadius anadius closed this as completed May 10, 2021
@MineRock
Copy link
Author

alright thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants