I have a compose navigation question, what is the ...
# compose
o
I have a compose navigation question, what is the best option if I need to pass a rather sensitive data between 2 screen, and i cant pass it as nav argument - it happens that I did this and crashlytics logged some of that data when the navigation failed - I’m guessing a shared something, would a repo be the best way? i just find it overkill maybe, thanks
a
sensitive data should probably be stored and “passed” in this: https://developer.android.com/reference/androidx/security/crypto/EncryptedSharedPreferences
another easy way would be to encrypt whatever you are passing first
o
yea that’s more for persistence
a
o
I was actually doing some of that encryption
a
You can use it for passing data easily, just store it and then delete it
o
yesterday
yea good idea
I found out that instead of doing navigation to the sheet, I would just use ModalBottomSheetLayout, but i do like your options
thanks!
🏄 1
c
maybe this could help if you know you havecertain bits of data you never want to log: https://github.com/trello/mr-clean