如何创建 Android Facebook Key Hash? [英] How to create Android Facebook Key Hash?
问题描述
我完全不明白这个过程.我已经能够导航到包含 Java SDK 中的 keytool 的文件夹.虽然我不断收到错误 openssl 未被识别为内部或外部命令.问题是,即使我能让它工作,我会做什么,之后又会怎样?
I do not understand this process at all. I have been able to navigate to the folder containing the keytool in the Java SDK. Although I keep getting the error openssl not recognised as an internal or external command. The problem is even if I can get this to work, what would I do and with what afterwards?
推荐答案
对于 Linux 和 Mac
打开终端:
用于调试构建
keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64
您将在.android"文件夹中找到 debug.keystore.将其复制并粘贴到桌面并运行上述命令.
You will find debug.keystore in the ".android" folder. Copy it and paste onto the desktop and run the above command.
发布版本
keytool -exportcert -alias <aliasName> -keystore <keystoreFilePath> | openssl sha1 -binary | openssl base64
注意:确保在这两种情况下它都要求输入密码.如果它不要求输入密码,则表示命令中有问题.debug.keystore 的密码是 "android" 并且要发布您必须输入您在创建密钥库时设置的密码.
NOTE : Make sure that in both cases it asks for a password. If it does not ask for a password, it means that something is wrong in the command. Password for debug.keystore is "android" and for release you have to enter password that you set during create keystore.
这篇关于如何创建 Android Facebook Key Hash?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!