signalapp / libsignal

Home to the Signal Protocol as well as other cryptographic primitives which make Signal possible.
GNU Affero General Public License v3.0
3.55k stars 415 forks source link

Best practice to store IdentityKeyPair, registrationId, PreKeyRecords, SignedPreKeyRecord #424

Closed ahmedcs2600 closed 2 years ago

ahmedcs2600 commented 2 years ago

How do we store IdentityKeyPair, registration Id, PreKeyRecords, SignedPreKeyRecord permanently in the android app. If the app is uninstalled we don't want to generate new keys. I want to know what is the best practice to store private keys how do we retain the keys after the app is reinstalled.

jatin-lakhani commented 2 years ago

+1

jrose-signal commented 2 years ago

This kind of question is better suited to the community forums: https://community.signalusers.org/c/development/android-development/22. This library lets you store the information however you want; the Android app chooses to store it as data associated with the app for a variety of reasons.