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

Encryption in Firefox tampermonkey crashes #686

Closed
Muph0 opened this issue Apr 17, 2018 · 1 comment
Closed

Encryption in Firefox tampermonkey crashes #686

Muph0 opened this issue Apr 17, 2018 · 1 comment

Comments

@Muph0
Copy link

Muph0 commented Apr 17, 2018

When encrypting string with generated/imported keys, this userscript run in Firefox tampermonkey crashes with error

Error: Error encrypting message: Could not
find valid key packet for signing in key d713ea674b8e4752

suggesting that the key is expired, even if the key is newly generated.

However, the same code run in client code works alright. (see this jsfiddle)
I have also tested it in Chrome tampermonkey and the script runs ok. Probably a bug?

@twiss
Copy link
Member

twiss commented Apr 27, 2018

window.Symbol doesn't seem to be available in tampermonkey userscripts. If you set window.Symbol = unsafeWindow.Symbol before you load openpgp.js, it works.

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

3 participants