×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    3

    Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Hi! Folks,

    I am new to the S60 platform and new to Java as well, so I hope you folks will forgive me for asking absurd questions.

    first question: Is it possible to use the S60 JAVA APIs one API group with the other? Like location APIs with SIP APIs or Security APIs with Messaging APIs etc...Or is there a restriction on the usage?

    second question: Is it possible to use S60 JAVA APIs to send and receive encrypted and signed messages? If it is where can I find some code samples/pointers which can give a fair idea to get started.

    Thanks in advance for any sort of help,
    vpatki.

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Quote Originally Posted by vpatki View Post
    Hi! Folks,

    first question: Is it possible to use the S60 JAVA APIs one API group with the other? Like location APIs with SIP APIs or Security APIs with Messaging APIs etc...Or is there a restriction on the usage?

    second question: Is it possible to use S60 JAVA APIs to send and receive encrypted and signed messages? If it is where can I find some code samples/pointers which can give a fair idea to get started.

    Thanks in advance for any sort of help,
    vpatki.
    Hi,
    @ First -
    Yeah you can use One API with other.In practice we mostly do the same..you need not to worry about it..
    @ second -
    You can send the encrypted sms from the one device and can decrypt the same..on the other end.

    These links will surely help you,
    http://twit88.com/blog/2008/01/02/ja...file-securely/
    http://www.bouncycastle.org/
    and the code is also here .
    http://www.java-tips.org/java-me-tip...tle-crypt.html

    Ans in very much details -
    http://book.javanb.com/wireless-java...e/LiB0122.html

    I guess that these lines can help you in any means...
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    I will also suggest to check the SATSA CRYPTO API JSR 177 available for S60 3ed

    http://www.forum.nokia.com/document/...357A8747F.html
    :Ruben

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Quote Originally Posted by raj_J2ME View Post
    Hi,
    @ First -
    Yeah you can use One API with other.In practice we mostly do the same..you need not to worry about it..
    @ second -
    You can send the encrypted sms from the one device and can decrypt the same..on the other end.

    These links will surely help you,
    http://twit88.com/blog/2008/01/02/ja...file-securely/
    http://www.bouncycastle.org/
    and the code is also here .
    http://www.java-tips.org/java-me-tip...tle-crypt.html

    Ans in very much details -
    http://book.javanb.com/wireless-java...e/LiB0122.html

    I guess that these lines can help you in any means...
    Thanks,
    Thanks alot for the info and code sample links. I have started working on a sample APP and the examples really are helpful.

    Let me further expand my second question: My requirement is to get the message from the user, sign and encrypt it, Build an s/mime message by attaching the key(signed and encrypted message) to the actual message and send it across using SIP request.
    I have gone thorugh the Messaging APIs, it can build multipart message but will need destination address to send the SMS. Is it that these interfaces can be used only for sending SMSes or can I use these APIs just to construct the multipart message and send the message as content of SIP request?

    Thanks,
    vpatki

  5. #5
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Quote Originally Posted by rdrincon View Post
    I will also suggest to check the SATSA CRYPTO API JSR 177 available for S60 3ed

    http://www.forum.nokia.com/document/...357A8747F.html
    Thanks this was a helpful link.

    vpatki.

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Post Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    But this package is only on S60

    http://freesrc.com

  7. #7
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Hi,
    Let me further expand my second question: My requirement is to get the message from the user, sign and encrypt it, Build an s/mime message by attaching the key(signed and encrypted message) to the actual message and send it across using SIP request.
    I have gone thorugh the Messaging APIs, it can build multipart message but will need destination address to send the SMS. Is it that these interfaces can be used only for sending SMSes or can I use these APIs just to construct the multipart message and send the message as content of SIP request?
    Hi,
    Not actually sure about your post,
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  8. #8
    Registered User
    Join Date
    Nov 2008
    Posts
    3

    Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Quote Originally Posted by raj_J2ME View Post
    Hi,


    Hi,
    Not actually sure about your post,
    Thanks,
    ok,
    What I meant was that the Wireless Messaging API set has APIs to build Multipart Mime Messages. Now I would like to use these APIs to build a multipart Mime message. Use this built multipart Mime Message as content of a SIP request, It would look like this.

    Sip Request
    {
    <Sip headers>
    ...
    ...
    <Sip Content> (This content will be the multipart Mime message which was constructed using Wireless Messaging APIs)
    }

    This SIP request will be sent across using Sip APIs as I do not want to use API provided by Wireless Messaging APIs to send the content. Since I failed to find any SIP APIs which allow to construct Multipart Message and send it as SIP content I was trying employ this approach.

    Is this approach correct or is there any other way to achieve this?

    I hope I was able to put it properly this time.

    Thanks again for any sort of help.
    vpatki.

  9. #9
    Regular Contributor
    Join Date
    Jul 2008
    Location
    Faridabad(Delhi NCR)
    Posts
    343

    Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Wtk 2.5.2 hav satsa tried this on ur phone...and check wheter its working or not ..then use dere decryption and encryption msg and get a staring of that and send it via wma
    i hav done this
    Anshu Chauhan
    J2me Developer

  10. #10
    Registered User
    Join Date
    Nov 2008
    Posts
    3

    Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Quote Originally Posted by ansh.chauhan View Post
    Wtk 2.5.2 hav satsa tried this on ur phone...and check wheter its working or not ..then use dere decryption and encryption msg and get a staring of that and send it via wma
    i hav done this
    Can you explain in detail what and how you have done it?
    I did not get it.

    Thanks,
    Vpatki.

  11. #11
    Regular Contributor
    Join Date
    Jul 2008
    Location
    Faridabad(Delhi NCR)
    Posts
    343

    Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    U hav Wtk 2.5.2 if u didn hav download it and dere is project Satsa plz run these and See how its working.....They Encrypt a String and Save it on Rms and We can decrypt it also.....just used dere encription method to encrypt ur Sms String and send it.
    And At Receiving end use Dere Decryption mEthod to decrypt encrypted msg.
    Anshu Chauhan
    J2me Developer

  12. #12
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Is it possible to send/receive encrypted messages using S60 SDK JAVA APIs?

    Quote Originally Posted by vpatki View Post
    Can you explain in detail what and how you have done it?
    I did not get it.

    Thanks,
    Vpatki.
    Hi,
    In addition to that you can find the details here,
    http://developers.sun.com/mobility/a...ticles/satsa1/
    http://java.sun.com/j2me/docs/satsa-dg/
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Java Application running on WTK but not on S60 SDK
    By roman.benz in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2009-06-09, 14:38
  2. Java SMS Send/Receive example?? (S60)
    By jat in forum Mobile Java General
    Replies: 2
    Last Post: 2006-10-16, 14:29
  3. Installing S60 with IBM Java
    By ajaybrar in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-05-01, 15:33
  4. Replies: 1
    Last Post: 2002-10-06, 09:14
  5. Almost all tools (S60 MIDP SDK B0.1, Nokia S60 SDK Symbian OS v0.3) Crashes
    By alexandershalamov in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-07-03, 13:44

Posting Permissions

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