Android Studio 主密码存储在哪里? [英] Android Studio where is Master Password stored?

查看:93
本文介绍了Android Studio 主密码存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在 Android Studio 中生成 APK 时,您可以使用主密码保护生成.此密码存储在文件系统中的何处?我希望我没有在我的项目中提交这个文件,即将它上传到 Github:-)

When you generate a APK in Android Studio you can secure the generation with a Master Password. Where in the filesystem is this password stored? I'm hoping I'm not committing this file in my project, i.e. and uploading it to Github:-)

推荐答案

主密码实际上并未存储,但它用于加密位于 security.xml 中的主密码文件文件与您的 Android Studio 首选项.该文件包含您的密钥库和密钥密码的加密版本如果您选中生成签名 APK"向导中的记住密码"复选框;如果您不告诉它记住密码,则不会存储任何内容.

The master password isn't actually stored, but it's used to encrypt the master password file, which lives in the security.xml file with your Android Studio preferences. That file contains encrypted versions of your keystore and key passwords if you check the "Remember Passwords" checkbox in the Generate Signed APK wizard; if you don't tell it to remember passwords, nothing is stored.

该文件所在的位置取决于您的平台,但通常在 Windows 上它将位于 \.AndroidStudioPreview\config\security.xml, ~/Library/MacOS 上的 Preferences/AndroidStudioPreview/options/security.xml,Linux 上的 ~/.AndroidStudioPreview/config/security.xml.请参阅 http://www.jetbrains.com/idea/webhelp/project-and-ide-settings.html 了解有关 IntelliJ 首选项存储位置的更多信息;Android Studio 本质上是一样的.

Where that file lives depends on your platform, but in general on Windows it will be in <User home>\.AndroidStudioPreview\config\security.xml, ~/Library/Preferences/AndroidStudioPreview/options/security.xml on MacOS, and ~/.AndroidStudioPreview/config/security.xml on Linux. See http://www.jetbrains.com/idea/webhelp/project-and-ide-settings.html for more information on where preferences are stored for IntelliJ; it's essentially the same for Android Studio.

如果知道主密码,您可以在有关尝试解密文件内容的 SO 问题中找到有关该文件的更多信息:Intellij IDEA - 查看保存的密码

You can find a little more information on the file in a SO question about trying to decrypt the file contents if the master password is known: Intellij IDEA - view saved password

这篇关于Android Studio 主密码存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆