git 使用全局记住用户名密码后是明文,有没有加密的方式
巴扎黑
巴扎黑 2017-05-02 09:18:46
0
2
1016
git config --global credential.helper store

使用这个会在当前用户根目录下创建一个.git-credentials的文件用于明文保存用户名密码及相关链接

请问有没有加密后保存的方式

巴扎黑
巴扎黑

Antworte allen(2)
迷茫

OS X:
git config --global credential.helper osxkeychain
Windows:

There’s a tool named git-credential-winstore (available at http://gitcredentialstore.codeplex.com) to store these credentials in the Windows Credential Store.

Linux/Unix:

There’s a tool named git-credentialgnome-keyring (bundled with Git 1.8.0 and above) to store these credentials in the GNOME Keyring.

给我你的怀抱

目测密文拿走了还是不安全。因为对称加密里面没有随机数。如果真想安全可以考虑使用使用ssh的方式进行认证,然后用RSA非对称加密。然后在非对称密码上再设置一个密码。Tip:绕过明文加密直接使用密文认证已经是很老的方法了。2333

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage