DEV Community

Discussion on: How to generate 11 char hash key for Sms Retriever?

 
appi2393 profile image
Apurva Jain

keytool -exportcert -alias my_alias -keystore path_to_my_keystore | xxd -p | tr -d "[:space:]" | echo -n my_app_package_name 'cat' | shasum -a 256 | tr -d "[:space:]-" | xxd -r -p | base64 | cut -c1-11

Should work fine with above command. cat replaced with 'cat'