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

查看:567
本文介绍了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上,它将位于<User home>\.AndroidStudioPreview\config\security.xml,MacOS上的~/Library/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问题中找到有关文件的更多信息:

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天全站免登陆