Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storing private/secret keys in an Ionic application

How do you go about storing private/secret keys in an Ionic application? I know that with a generic Android application, it is possible with the Android Keystore API or Keychain Services.

Some context: I am trying to develop an offline payments protocol that works on the basis of Message Authentication Codes (MAC) which establish an agreement between the payer and payee. This protocol enables value to be transferred from Alice to Bob by copying 8 digits in one direction and 8 digits in another. The code is computed using secret keys assigned to each participant, which is based on several parameters. Each instance of the application will need to generate its own secret key for the user, which acts as a unique identifier and a basis for the application.

like image 787
methuselah Avatar asked Nov 08 '22 14:11

methuselah


1 Answers

Try using SecureStorage It does have some limitations but should work for your requirement

like image 150
Ashok Shastry Avatar answered Dec 03 '22 12:12

Ashok Shastry