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

@vue/repl crypto problems #25

Closed
linpeng118 opened this issue Mar 8, 2022 · 1 comment
Closed

@vue/repl crypto problems #25

linpeng118 opened this issue Mar 8, 2022 · 1 comment

Comments

@linpeng118
Copy link

@vue/repl依赖中的crypto,你用的是web标准中的crypto,我在http生产环境中crypto下的subtle 报undefined,然后我在Stack Overflow上看到有说是 Web Crypto API 只能在安全环境下(本地localhost、127.0.0.1或者https)使用,在其他局域网地址或者其他ip下无法使用。报错文件为 vue-repl.js 下的 hashId方法。
我希望能够不使用Crypto 来对文件名进行加密,因为这会导致在非安全环境下报错,而我们大多数开发者都是在http这种非安全环境下开发的,所以我建议你们能够重写 vue-repl.js 下的 hashId方法,因为只因为想加密文件名而导致整个程序无法继续运行,就很可惜。

@linpeng118
Copy link
Author

间断有不少同学不清楚为啥尤大为啥close掉这issue来问我,因为hashId方法从之前的crypto改成hash-sum依赖了,所以不存在ip访问报错问题了喔~

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

1 participant