Giter VIP home page Giter VIP logo

Comments (10)

c4710n avatar c4710n commented on June 26, 2024 1

有私钥

感谢提醒!

这里是用了一种管理敏感信息的模式 —— secrets 目录中的内容是用 git-crypt 来管理的:

  • git-crypt 可以保证在提交「secrets 目录中的内容」时,会将其中的内容使用「git-crypt key」加密
  • 「git-crypt key」是用个人的 GPG 公钥加密过的(只能使用个人的 GPG 私钥解密),被存储在 .git-crypt 目录里

这样就构建起了个加密链:GPG 私钥 -> git-crypt key -> secrets/目录中的内容

好处是:

  • 跟项目强相关的内容不需要分离保存(这里用了高内聚的**,降低后续使用的成本)
  • 个人只需要保存 GPG 密钥,记录 GPG 密钥的 passphrase(因为,加密链的起点是 GPG 私钥)

因为 GPG 足够安全,所以加密后 git-crypt key、secrets/目录中的内容即使公开也没有关系。


题外话:链接的文章里也提到了密码管理。个人比较偏好 https://www.passwordstore.org/ ,因为它也是用 GPG 密钥对做为加密起点的。一切归于 GPG~

如果完全信任 GPG,GPG 加密过的内容甚至可以公开,比如王子亭在做的

了解更多:

from chenyukang.github.io.

chenyukang avatar chenyukang commented on June 26, 2024 1

这样就构建起了个加密链:GPG 私钥 -> git-crypt key -> secrets/目录中的内容

感谢分享,这也是种思路。
总之,总有私钥需要保密 😁

from chenyukang.github.io.

jtsang4 avatar jtsang4 commented on June 26, 2024

哈哈,多年双拼使用者路过,这里推荐一些双拼输入法,除了搜狗、百度这些有双拼方案外,如果担心数据安全之类的问题,移动端推荐用 gboard,Linux 桌面推荐用 fcitx

from chenyukang.github.io.

chenyukang avatar chenyukang commented on June 26, 2024

哈哈,多年双拼使用者路过,这里推荐一些双拼输入法,除了搜狗、百度这些有双拼方案外,如果担心数据安全之类的问题,移动端推荐用 gboard,Linux 桌面推荐用 fcitx

移动端如果使用双拼是不是不适合用九宫格了?

from chenyukang.github.io.

A5yncX avatar A5yncX commented on June 26, 2024

哈哈,多年双拼使用者路过,这里推荐一些双拼输入法,除了搜狗、百度这些有双拼方案外,如果担心数据安全之类的问题,移动端推荐用 gboard,Linux 桌面推荐用 fcitx

移动端如果使用双拼是不是不适合用九宫格了?

  • 通过将汉语拼音中每个含多个字母的声母或韵母各自映射到某个按键上,使得每个音都可以用两个按键打出,极大地提高了拼音输入法的输入速度。

移动端的话还是更建议根据手机屏幕大小选择输入法,当然在双拼熟悉期还是尽量的去强迫自己用双拼。顺带问一下yukang老师你打算使用哪种双拼

from chenyukang.github.io.

chenyukang avatar chenyukang commented on June 26, 2024

@CykaOWO 我在使用小鹤双拼
手机上以前习惯九宫格,为了练习双拼也跟着换成了全键盘,还在习惯中。

from chenyukang.github.io.

A5yncX avatar A5yncX commented on June 26, 2024

@CykaOWO 我在使用小鹤双拼 手机上以前习惯九宫格,为了练习双拼也跟着换成了全键盘,还在习惯中。

同样是小鹤,我之前用的也是全键盘,所以在手机上就不用再适应新的拇指移动。
小鹤双拼

from chenyukang.github.io.

jtsang4 avatar jtsang4 commented on June 26, 2024

哈哈,多年双拼使用者路过,这里推荐一些双拼输入法,除了搜狗、百度这些有双拼方案外,如果担心数据安全之类的问题,移动端推荐用 gboard,Linux 桌面推荐用 fcitx

移动端如果使用双拼是不是不适合用九宫格了?

是的,移动端就要换成为全键盘了,习惯后效率还是很高的

from chenyukang.github.io.

c4710n avatar c4710n commented on June 26, 2024

管理 dotfiles 算是类 UNIX 遗风了,哈哈。

我也一直在用类似的方式管理自己的配置,https://github.com/c4710n/macos-x-nix

from chenyukang.github.io.

chenyukang avatar chenyukang commented on June 26, 2024

管理 dotfiles 算是类 UNIX 遗风了,哈哈。

我也一直在用类似的方式管理自己的配置,https://github.com/c4710n/macos-x-nix

很棒!
友善提醒,有私钥,哈哈,应该是不用的吧。
https://github.com/c4710n/macos-x-nix/tree/master/secrets

from chenyukang.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.