zmister2016 / MrDoc

mrdoc,online document system developed based on python. It is suitable for individuals and small teams to manage documents, wiki, knowledge and notes. 觅思文档,适合于个人和中小型团队的在线文档、知识库系统。
https://mrdoc.pro/
GNU General Public License v3.0
2.87k stars 535 forks source link

加密文章 #38

Open gophere opened 3 years ago

gophere commented 3 years ago

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

zmister2016 commented 3 years ago

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