3 Replies Latest reply on Sep 29, 2014 10:36 AM by Jon Tara

    How to Implement a key Store?

    Siddhant  Wadhera

      Hi

       

      I need to store some data into a key store rather than storing it in Sql Database.

      I have tried but could not find any API related to this in rhomobile docs.

       

      It would great if you can provide some API links which can help me in implementing this for both android and iOS Platform

       

      Any help is appreciated

       

      Thanks

      Siddhant

        • Re: How to Implement a key Store?
          Jon Tara

          What do you mean by "a keystore"? Do you mean specifically the OSs, keystore? (Most OSs have one.) Or something else?

           

          You'd have to write a Rhodes extension, and you'd have to implement it for each platform you intend to support. You'll have to obtain the documentation on how to use the native keystore, and write an extension to wrap it.

           

          This would be a useful addition to Rhodes in the developer's spare time.

           

          iOS calls it a "keychain":

           

          Keychain Services Programming Guide: Keychain Services Concepts

            • Re: How to Implement a key Store?
              Siddhant  Wadhera

              Hi Jon

              Yes i would like to key store which most OSs have like Key chain in iOS as you mentioned!!.

               

              Indeed this will be a useful addition to Rhodes.But as i have timing constraints is there any alternative to this??

               

              Basically i want to store some key-value pair within the app where it is more secured as compared to when stored in Database.

               

              Is there any existing Rhodes extension/API  to do this??

               

              Thanks

              Siddhant

                • Re: How to Implement a key Store?
                  Jon Tara

                  You could use a licensed (paid) version of RhoMobile Suite, and then you gain ability to encrypt the database. This may or may not meet your requirement. You may have some specific need to interact with the native keystore. (Maybe it is an approved security solution for your requirement, or maybe you need to share keys with other devices using OS features.)

                   

                  The big advantage is that if this does meet your requirement, it meets it instantly. (OK, you have to configure to encrypt the database.)

                   

                  RhoMobile Suite - Pricing

                   

                  If you need to use the native keystore, I'm not aware of any supplied extension that does this. You'll have to seek a third-party solution or else write it yourself.

                   

                  Writing a native extension is not that difficult. At least for iOS. (I haven't done it for Android. It would be difficult for me, because I do not write Java!)