972 questions
0
votes
0
answers
50
views
javax.crypto.AEADBadTagException thrown when decrypting cipher text inside `biometric_storage` plugin in Flutter
When using the biometric_storage plugin in flutter for decryption of the saved data an exception is getting thrown.
javax.crypto.AEADBadTagException
javax.crypto.AEADBadTagException
at android....
2
votes
1
answer
165
views
Firebase Auth currentUser null on cold start due to KeysetManager failed to initialize on Redmi Note 13 HyperOS
I'm developing an Android app using Firebase Authentication (email/password) with Jetpack Compose and Kotlin. The app stores user data locally in DataStore and sets a loggedIn flag to true after ...
0
votes
1
answer
84
views
keytool Unable to locate a Java Runtime
I'm trying to set a Google Auth platform client ID for Android for my Flutter application in order to use google_sign_in.
For that, I need to get the SHA-1 certificate fingerprint. The command ...
0
votes
2
answers
177
views
Visual Studio 2022 maui won't sign app for Android
I'm trying to build a MAUI app for Android, to be debugged on a locally attached tablet. I'm trying to store the location of the keystore in the textbox of the project, but VS2022 refuses to accept ...
1
vote
0
answers
97
views
AEADBadTagException error on user's device causing Mobile app to not open
User I have in closed testing of an app uninstalled our app, and re-installed it via the Google Playstore app link. I pulled their bug report off their phone.
I'm pretty sure this (snippet below) is ...
0
votes
1
answer
128
views
EC Diffie Hellman on Android
I have a problem verifying key exchange with the server using Elliptic Curve Diffie Hellman. The key I sent doesn't work for some reason, the server can not use it or recognize it, and I don't know ...
0
votes
1
answer
47
views
Limit keystore access to specific processes
Is there a way to limit the keystore access for processes within the same app, I mean, If a process created a key entry, this entry can't be accessed by other processes even it it belongs to the same ...
0
votes
1
answer
118
views
FLUTTER: APK from adb pull from an app(my app) downloaded from play store is debug signed when I use apksigner to verify it
I currently published an App on Play store, when I download the app on play store and pull the apk from my phone using 'adb pull' then use apksigner to verify it, the result shows that it is on debug ...
2
votes
0
answers
43
views
Key not invalidated by new biometric enrollment
I am creating a key used for login via biometrics with this method
fun createKey() {
val mKeyStore: KeyStore
val mKeyGenerator: KeyGenerator
val androidKeyStore = "...
2
votes
0
answers
302
views
Import Wrapped Key to Keystore
I generate the RSA key pair and the aes key, then wrap the aes key using the rsa public key.Then try to import the encrypted AES key to Android Keystore but a meaningless error message appears
That ...
0
votes
1
answer
817
views
"Missing keystore" in Android Studio Debug mode although there is a debug.keystore in the ".android" folder
Greetings to everyone,
I'm trying to make some tests to use App Links on my app, but I've encountered an issue regarding the debug.keystore during my tests. Because of this, I've being unable to run ...
-1
votes
1
answer
333
views
Generate lost keystore file with pepk and pem file
I work for a company that built an android app for another company. I joined a few months ago and the previous dev did not save the keystore file, nor do i have the necessary access to reset the key.
...
1
vote
1
answer
168
views
Certificate chain length: 0
C:\Users\PC\Documents\Github_repo\flutter_aplication_1> keytool -list -keystore
C:\Users\PC\.android\debug.keystore -alias androiddebugkey Enter keystore password
***************** WARNING ...
0
votes
1
answer
64
views
Android studio debug build fails on windows when windows display language is Arabic
I have an android project on windows that when I build I get Failed to create keystore exception for the gradle task :app:validateSigningDebug.
I suspect this cause.
Cause: invalid date string: ...
0
votes
1
answer
162
views
Receiving `java.security.UnrecoverableKeyException: Failed to obtain X.509 form of public key.` after using secure key import on Android?
I tried using the secure key import feature of AndroidKeyStore, following the example at:
https://android.googlesource.com/platform/cts/+/master/tests/tests/keystore/src/android/keystore/cts/...
1
vote
0
answers
410
views
How to find out if an Android device supports hardware backed keystore
So far all the examples I have found on the Internet that check if a key is stored in hardware backed AndroidKeyStore do need to create the key first and then extract KeyInfo out of the key to check ...
1
vote
0
answers
78
views
How to replace an entry in KeyStore?
This is my code:
val oldAlias = "oldAlias"
val newAlias = "newAlias"
if (keyStore.containsAlias(oldAlias) && keyStore.containsAlias(newAlias)) {
try {
...
0
votes
1
answer
910
views
com.android.ide.common.signing.KeytoolException: Failed to read key key0 from store toDerInputStream rejects tag type -90
Getting below error while signing the release apk with correct keystore passwords.
com.android.ide.common.signing.KeytoolException: Failed to read key key0 from store "D:\Path_TO_keystore\file....
0
votes
0
answers
311
views
android.security.KeyStoreException: Unsupported purpose when hashing - using PURPOSE_SIGN
I am using Android KeyStore in Kotlin. Right now I am having an issue where I am loading keys in, and later when I retrieve them I use them to encrypt, decrypt, and generate a hash. Encrypt/decrypt ...
0
votes
1
answer
373
views
android.security.KeyStoreException: Incompatible purpose when integrating freeRASP library
After adding the library freeRASP Android (version 8.3.0) to our project, when trying to call a secure endpoint, we get SSLException from Retrofit/OkHttp or KeyStore Exception and our api calls fail.
...
1
vote
1
answer
130
views
Cannot convert PrivateKey to String
I want to convert an private key to an String so that user can store it in hard state .
i tried to convert the private key using Base64 but it gives me error stating privateKey.getEncoded() is null
...
3
votes
1
answer
2k
views
Visual Studio 2022 .NET MAUI Project Settings will not save location of Android KeyStore file
I am trying to set the path to my KeyStore file in the Android section of the project properties for my .Net Maui project. I click on the browse button, select the KeyStore file, and when the ...
0
votes
1
answer
667
views
How do I get the password to upload keystore file (keystore password incorrect)
I have an issue where the previous developer isn't totally cooperative. As he refused to share the keystore file password and he claims the password is in the file. when I checked the gradle....
1
vote
0
answers
498
views
How to use Android Key Store for SSL Connection
I'm trying to store the certificates of the client in the Android key store and then parse it to a key manager for it to send it to server. We have a setup where the client needs to present his ...
0
votes
1
answer
109
views
Maui Blazor Hybrid .net7.0-android33.0 Cant sign package
I have a Maui Blazor Hybrid app, it runs on .net7.0 with target framework API 33 android 13. Since I have changed this I cant sign my android app. I can create my keystore file successfully, but as ...
0
votes
0
answers
443
views
Generating a new SHA-1 for Google Cloud OAuth Credential?
I had a Firebase project using an Android debug SHA-1 located at ~/.android/debug.keystore for authentication. I deleted the project, and realized after when trying to create an OAuth 2.0 credential ...
3
votes
1
answer
2k
views
Signing JWT using ES256 on Android
I am trying to generate a JWT and to sign it with a private key, on Android and I am failing to do so because online decoders such as jwt.io or token.dev say that they could not verify the signature.
...
0
votes
0
answers
113
views
Getting android keystore signature keeps changing after some days
I've created a keystore for my app and has always been signing with it. In the app there's a verification to test if the key hash has changed. However today when I exported the apk with and installed ...
0
votes
0
answers
399
views
Store RSA public key into Android Keystore
I'm trying to insert a public key into Android Keystore (also generated by Android Keystore) as an X509 certificate as:
// Convert String into a public key
val keyText = "...
0
votes
2
answers
310
views
Storing genetaredKey in AndroidKeyStore (java.lang.IllegalArgumentException: Key material is null) when I retrieve it is null
I have an Encryption class which generates a key during encryption and store it in AndroidKeyStore but when I try to retrieve the key it is null.
NT: Im calling the encrypt function and decrypt ...
-2
votes
1
answer
675
views
Hello. I am using Godot 4.1 and I need a debug.keystore so I can export to android. I have no idea on how to make one
I need it so u can export to android and I have no clue how. I did install android studio giraffe though. If you could give me a detailed step by step tutorial on how, that would be great
I tried just ...
1
vote
0
answers
189
views
Natively accessing Android's KeyStore's keys in Flutter doesn't prompt for authentication
I am developing an Android application in Flutter for which I need to generate a private-public KeyPair through Android's KeyStore (not simply store values in KeyStore but use KeyStore itself to ...
0
votes
0
answers
139
views
PKCS12 keystore is empty after loading on Android device
I'm trying to load PKCS12 keystore with a single SecretKeyEntry on Android device:
Keystore type: PKCS12
Keystore provider: SUN
Your keystore contains 1 entry
Alias name: client_key_11
Creation date:...
0
votes
1
answer
178
views
Stuck on trying to Create an upload keystore
I am currently tring to create an upload keystore, but I am stuck with the problem:
The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for ...
2
votes
0
answers
1k
views
When to use setUserAuthenticationRequired
I am a little confused as to when should I use the android.security.keystore.KeyGenParameterSpec.Builder setUserAuthenticationRequired method. I understand that the main purpose of using this method ...
-1
votes
1
answer
369
views
Store password in Android Keystore using biometric API
I want to store password in Android Key-store just confused where it stores actually the password is it in Sharedpreference or File
this is the code i tried so far
import android.os.Bundle
import ...
0
votes
1
answer
88
views
Is there any way to generate my old keystore file?
I tried to create new release on playstore for my react-native app.But it gave this error(Check above img).I lost the upload key which I use to sign each release.
I have no permission to request key ...
0
votes
1
answer
307
views
What's the different between Changing App Signin Key vs Upgrade App Signin Key
When we want to upload an App Release, we can change the App Signin Key, as per the image below
Similarly, in the App Signin tab, we can also upgrade App Signin Key (once a year).
What's the main ...
1
vote
1
answer
3k
views
Use encrypted public key that has long expiration date so encrypted private key can be reused in Google Play App signing
This didnt happen before, as I was able to use the same encrypted private key and upload certificate for multiple apps without an expiration error message. Now I have to download a public key and ...
0
votes
1
answer
475
views
Issue finding keyAlias 'upload' when building appbundle from VS Code (flutter)
I'm signing a keystore to upload a flutter app to google play for the first time, and having trouble finding a keystore. Any idea what could be going wrong?
Specifically, I'm getting the following ...
0
votes
1
answer
353
views
SetUnlockedDeviceRequired() Android Key Hardening flag issue in Android 13 version when device is unlocked using Face recognition
As part of the security feature I am enabling **SetUnlockedDeviceRequired **android key store flag in my c# Xamarin code to insure that Keystore in not accessible if the device is locked and this ...
1
vote
0
answers
110
views
Firebase Phone Otp Recaptcha uses Android Keystore crashes in Android Instant App
The current Firebase Phone Otp uses Play Integrity API to validate the app before it sends phone OTP to users. While running it in an emulator causes it to launch the Recaptcha flow on a browser and ...
1
vote
0
answers
375
views
How do I parse attestationVersion and keymasterVersion in Android key attestation?
When performing Key Attestation in Android, I'm getting a certificate with the following first 4 values in the 1.3.6.1.4.1.11129.2.1.17 x509v3 extension:
0:d=0 hl=4 l= 304 cons: SEQUENCE ...
3
votes
2
answers
870
views
Android Key Store doesn't decrypt passsword
I learning the cryptography in Android. Try to encrypt/decrypt user's password. Encryption method is working pretty fine, but decryption method is always getting me an error.
Here is code of the ...
0
votes
0
answers
80
views
How do I apply SQLCipher to my Login database?
I am creating a Login application that can be reused for any other application with a little tweaking to the UI and features. The user inputs their username and password into the text boxes, and ...
2
votes
0
answers
822
views
Malformed \uxxxx encoding error when building Flutter app bundle with keystore.properties
I'm encountering the issue with my Flutter app's when building flutter appbundle I'm getting a "Malformed \uxxxx encoding" error,
FAILURE: Build failed with an exception.
Where:
Build file ...
0
votes
0
answers
465
views
Android Keystore returns a null value when trying to access the saved value
My Objective is to save a small String ID in the android Keystore and get it back. This should work even after reinstalling the app. My code as bellow. When I use the "getStringFromKeyChain" ...
0
votes
2
answers
856
views
Error keystore tampered with or password incorrect when building appbundle with the correct keystore passowrd
I have a problem with keystore.jks file in my flutter app,
I'm able to open the keystore.jks file with keytool -list -v -keystore keystore.jks command with the password (not any default password ...
2
votes
0
answers
305
views
I'm having trouble understanding Android MasterKeyBuilder and custom aliases
I am wanting to use a MasterKey to encrypt a file on my Android device, and am a little uncertain on what the correct way is of doing that. The following code works fine across reboots, but I want to ...
0
votes
1
answer
468
views
Keystore Does Not Exist Error Android Studio
I am getting an error on android studio, it is as follows:
android:failed with 1 error
build.gradle
keystore file does not exist:
C:\Users\Brandy\Documents\BoxFan\platforms\android\..\..\..\key.jks
I ...