-
-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getGenericPassword
failing after updating package from 8.2.0
#704
Comments
Hi! I’ll take a look at this soon. Just one quick question: is there a specific reason you’re still using FacebookConceal? It’s outdated and will be removed soon. Are other ciphers affected as well? |
@DorianMazur I found this issue whilst upgrading from I thought the issue at first was the migration to these storage types but ended up finding the issue was with the upgrading of the package. |
I can check on the other ciphers we use. Currently it is KC which is also being migrated once we can sort this upgrade issue. I haven't had a chance to test this yet but can do today |
So the other storage we used was |
@DorianMazur hey, hope you've had a wonderful new year and holidays, I was wondering if there's any progress/updates on this ? |
@Bowlerr I will be working on it this weekend. |
Hi @Bowlerr, I looked into this, but it’s quite difficult to investigate. It seems like the issue is related to FacebookConceal, which hasn’t been maintained for a few years now. To fix this, I recommend switching to AES encryption in the version 8.2.0 of react-native-keychain. You can use the following code to safely migrate your data from FB to AES: await getGenericPassword({ service: 'passcode', rules: SECURITY_RULES.AUTOMATIC_UPGRADE }); After that, you can update to version 9.2.2. Please note that FacebookConceal will be removed in the next major release of react-native-keychain. Hope this helps! |
@DorianMazur I have thought of that solution however I can't guarantee all our active users will upgrade the app in order and at the moment we do not have OTA updates in place. The best bet I can think of is to hold off on updating after moving away from FC after a few app updates until an acceptable amount of users have converted. If you have any other suggestions or luck figuring out a solution let me know |
…x to remove spacing to match previous Java implementation - Updated createPasswordEntity and createUsernameEntity in CipherStorageFacebookConceal to remove the unnecessary space after the prefix. Now both match the Java implementation. - Resolves: oblador#704 Co-authored-by: George Bell <[email protected]>
@DorianMazur I managed to figure out the issue. Ended up being an extra space being added in the conversion of the code to Kotlin... It works perfectly after. |
Title: Incompatibility Between Versions 8.2.0 and 9.2.2 with
getGenericPassword
Description:
When upgrading from
react-native-keychain
version8.2.0
to9.2.2
/9.2.1
, I encountered an error when callinggetGenericPassword
. The password was set using version8.2.0
, but when attempting to retrieve it in version9.2.2
, the following error occurs:Steps to Reproduce:
8.2.0
:9.2.2
or9.2.1
:Observed Behavior:
The
getGenericPassword
call fails with the error:Expected Behavior:
The
getGenericPassword
call should successfully retrieve the password set in version8.2.0
.Environment:
8.2.0
9.2.2
0.74.5
Additional Notes:
It seems like the encryption format or decryption logic may have changed between the two versions, resulting in backward compatibility issues. If this is expected, could you provide guidance on migrating securely without data loss?
The text was updated successfully, but these errors were encountered: