×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2013
    Posts
    9

    [RSA] Decryption in Asha platform

    I'm programming an application with RSA decryption function.
    Encoded secret key is stored in a file in Midlet. I load secret key as a string. However, i dont know how to load encoded secret key to RSAPrivateKey using SATSA APIs (that Asha supported).
    Any body can help me ?

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: [RSA] Decryption in Asha platform

    I'm not sure i understand what is the problem your facing, have you tried loading the key byte array data from the file to a SecretKeySpec object?
    lets say your key data is stored in
    byte[] data;
    you just use new SecretKeySpec(data,0,data.length,"RSA");
    if your key is inside a file in your jar then you can easily read it into a byte[]

Similar Threads

  1. SIP web App in Asha platform
    By J2ME MultiComm in forum General Development Questions
    Replies: 1
    Last Post: 2013-08-07, 09:09
  2. Exit application on Asha Platform 1.0
    By TongMuan in forum Publishing to Nokia Store
    Replies: 4
    Last Post: 2013-07-28, 15:57
  3. Why it says not compatible for Asha Platform?
    By nemoryoliver in forum Nokia Asha Web Apps
    Replies: 4
    Last Post: 2013-05-13, 18:10
  4. Cross Platform Encryption/Decryption
    By RMOP in forum General Development Questions
    Replies: 7
    Last Post: 2010-01-07, 14:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×