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

加密文章 #38

Open
gophere opened this issue Nov 20, 2020 · 1 comment
Open

加密文章 #38

gophere opened this issue Nov 20, 2020 · 1 comment

Comments

@gophere
Copy link

gophere commented Nov 20, 2020

你好,提个建议:
我觉得可以加入一个新的功能(可通过插件方式实现):就是文章中的资料可能非常私密,但是又不是私密到自己的银行卡密码啥的,比如某个问题的算法解决(这个可能对自己来说非常私密,不想让别人知道),但是如果外人能登入我的mrdoc网站,那就能随便看数据了,不管你建立的是私密、公开文档,有admin账号密码就能为所欲为了。这种情况下,是否可以考虑加入一个类似于 vuepress 的 加密插件vuepress-plugin-encrypt(阿里的语雀文档也有该功能),后台写入读取存储都是加密后的数据,只有在前端查看时输入对应的解密秘钥才能看到文章中加密的部分内容。当然为了提高体验性,在前端可以设置秘钥解密所有文章,可以设置有效时间等等,省的每看下私密内容都要输入秘钥等等。参考下:https://www.imaegoo.com/2020/vuepress-encrypt/

@zmister2016
Copy link
Owner

@gophere 感谢你的建议,后续将评估一下可行性

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