Giter Site home page Giter Site logo

Comments (5)

pkrawczykObj avatar pkrawczykObj commented on June 16, 2024

The bug is probably in EncryptedSharedPreferences from androidx.security:security-crypto. See more:
https://issuetracker.google.com/issues/164901843?pli=1

However it would be nice if you can think about some workaround for it, because otherwise we risk a crash on startup in our app, after implementing OKTA Push SDK in the way how do you suggest it in the sample.

from okta-devices-kotlin.

FeiChen-okta avatar FeiChen-okta commented on June 16, 2024

Hi @pkrawczykObj For testing you can disable encryption by using shared preference.

    private val sharedPreferences: SharedPreferences = app.getSharedPreferences(passphraseSharedPref, Context.MODE_PRIVATE)

Replace encrypted shared preference with shared pref in

private val sharedPreferences: SharedPreferences = EncryptedSharedPreferences.create(

from okta-devices-kotlin.

pkrawczykObj avatar pkrawczykObj commented on June 16, 2024

Hi @FeiChen-okta

Ok and what are your recommendations for production version of the app to avoid this issue?

from okta-devices-kotlin.

FeiChen-okta avatar FeiChen-okta commented on June 16, 2024

Hi @FeiChen-okta

Ok and what are your recommendations for production version of the app to avoid this issue?

The android encryption library uses tink and it looks like it has issues https://issuetracker.google.com/issues/158234058

My recommendation is try 1.1.0-alpha06 which was released yesterday. This updated tink to 1.8.0.
If that doesn't fix the issue then writing own encryption is another option.

from okta-devices-kotlin.

pkrawczykObj avatar pkrawczykObj commented on June 16, 2024

Your recommendation does not fixed the issue and I switched to my own encryption. Maybe it would be worth to mention about it in Readme or change the sample implementation, because it caused the app crash on startup, which can be really painfull.

from okta-devices-kotlin.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.