yakivmospan / scytale

One tool to manage key generation, key storing and encryption on different APIs of Android.
432 stars 45 forks source link

Yakimov.. quick help .. I use a PIN.. number ie test to feed the key #18

Open johnda98 opened 4 years ago

johnda98 commented 4 years ago

Store store = new Store(getApplicationContext()); if (!store.hasKey("12345")) { SecretKey key = store.generateSymmetricKey("12345", null); }

your code above.. I generated and presumeStore was set to the PIN number .. but when I went in it said the Store did not see the 12345 related key in the keystore and thus could not find it..

do I have to put something in the manifest ? as a lower activity creates the store from Store but when I re-enter the App .. how would I reference store from the ApplicationContext ? it seems to not find the key I stored in the last Activity and when I re-enter the App it cannot find the key :-(

missing something obvious ? in a droid setup ? for the manifest ? yes I need to persist stored entries in Store