mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
The PIN was stored as plaintext in SharedPreferences despite the
function names suggesting encryption. This migrates it to the existing
DataStore infrastructure with AES-GCM encryption via SecureCryptoHelper,
using an app-level DataStore file ("app_datastore").
A one-time migration reads the legacy plaintext PIN from SharedPreferences,
writes it encrypted to the DataStore, and removes the old entry.
https://claude.ai/code/session_01TeTHfGJL42J7eHCDdhsDnP