Skip to content

Instantly share code, notes, and snippets.

View rynkowsg's full-sized avatar

Greg Rynkowski rynkowsg

View GitHub Profile
@rynkowsg
rynkowsg / keybase.md
Created October 19, 2023 16:03
keybase.md

Keybase proof

I hereby claim:

  • I am rynkowsg on github.
  • I am rynkowsg (https://keybase.io/rynkowsg) on keybase.
  • I have a public key whose fingerprint is F347 6719 D066 1632 D61D 0B3B 6762 037B 92E2 622E

To claim this, I am signing this object:

@rynkowsg
rynkowsg / SharedPreferencesUtils.kt
Created March 6, 2024 16:03
Get EncryptedSharedPreferences
//
// Get EncryptedSharedPreferences and handle restore of accidentallly
// backuped file that we can no longer decrypt. If the master key provided
// is not able to decrypt the shared preferences, the file will be recreated.
//
// Tested with "androidx.security:security-crypto:1.1.0-alpha06"
//
package pl.rynkowski.platform_utils