keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect, Android keystore
<p>I'm trying to access my keystore because I need to get the SHA1 fingerprint to generate a release Google Maps Api key: <a href="https://developers.google.com/maps/documentation/android-api/signup?hl=fr" rel="nofollow">google map docs</a></p>

<p>When trying to enter my key on the command line (or copying and pasting it), I'm getting the following:</p>

<p><code>keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect</code></p>

<p>Now, if I go inside Android Studio and select "Generate a Signed APK", it asks for my keystore password, and if I enter it, (along with the alias and alias pass) I can click finish and it begins to build a release APK (though of course it fails because as mentioned above, I need a Google Maps <strong>release</strong> key instead of a debug one.)</p>

<p>So because of that I know it has to be the correct password, and yet I'm still getting this error. Has anyone else experienced this? What is the possible cause and what is the solution?</p>