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

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

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

巴扎黑
巴扎黑

全部回复(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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号