×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Question Encryption in J2ME

    Hi Experts,

    How do i start with Encryption in J2ME. Do we have TEA(Tiny Encryption Algorithm) in J2ME. Where could i found the library to use in my J2ME Application.

    Please do reply. Just waiting for the respone.
    Regards
    Rajan Verma

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: Encryption in J2ME

    You can try using DES from JSR 177, refer to http://wiki.forum.nokia.com/index.ph..._using_JSR-177
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: Encryption in J2ME

    See also Bouncy Castle: http://www.bouncycastle.org/java.html

  4. #4
    Registered User
    Join Date
    Jul 2012
    Location
    South America
    Posts
    43

    Re: Encryption in J2ME

    hello guys good day !!

    can you give me some idea on how to encrypt messages using j2me ..
    please help me guys ..

    standard encrypter in j2me

    thanks in regard

    *call me jana*

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: Encryption in J2ME

    Quote Originally Posted by AnorEnaj2330 View Post
    hello guys good day !!

    can you give me some idea on how to encrypt messages using j2me ..
    please help me guys ..

    standard encrypter in j2me

    thanks in regard

    *call me jana*
    See (again, as you've already been there): http://www.developer.nokia.com/Commu...l=1#post757050

  6. #6
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: Encryption in J2ME

    thanks for replying, I have to send the data to the mysql database at server end. Before sending the data i have to encrypt it. and before saving to the database i have to decrypt the data. And vice versa for recieving the data to the mobile.

    I want to know which one is better option DES or BouncyCastle Algorithm. Need an urgent reply.

    Thanks in advance.
    Regards
    Rajan Verma

  7. #7
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: Encryption in J2ME

    One more question I have also used RMS in my application . The data stored in RMS is in encrypted form, is this true....or should i save the data to the local database in encrypted form.

    Please Reply.
    Regards
    Rajan Verma

  8. #8
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Encryption in J2ME

    Quote Originally Posted by rajan701v View Post
    Do we have TEA(Tiny Encryption Algorithm) in J2ME. Where could i found the library to use in my J2ME Application.
    I typed "tiny encryption algorithm java" into Google... the top hit in the results was: Java/J2ME Trivial Encryption Algorithm (TEA) implementation.

    Quote Originally Posted by rajan701v View Post
    The data stored in RMS is in encrypted form, is this true
    Unlikely, unless you encrypt it. Nothing in the specification requires the device to encrypt RMS data for you.

    Graham.

  9. #9
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: Encryption in J2ME

    I want to send data to the mysql server at server end using web service. Which algorithm should i use : DES or BouncyCastle

    Please Reply.
    Regards
    Rajan Verma

  10. #10
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: Encryption in J2ME

    Quote Originally Posted by rajan701v View Post
    I want to send data to the mysql server at server end using web service. Which algorithm should i use : DES or BouncyCastle
    You can use either one of the algorithms. Both will work, as long as both the client and server are using them correctly.

    Depending on the case, using HTTPS will also encrypt the data without any programming needed from your side (if your server has the correct certificate for HTTPS/SSL).

  11. #11
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: Encryption in J2ME

    Thanks petrib.
    According to the above discussion. I have used DES Encryption algo and send the data to the server in encrypted form and also sent the number of bytes recieved from doFinal() method to the web service. But i'm not able to recieve any response from the other end.

    Please reply.
    Regards
    Rajan Verma

  12. #12
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: Encryption in J2ME

    Is the "other end" also under your control? If so, check the "other end" that it is actually receiving the data, and then really sending something back to the client (if the server is not responding with anything, then there's of course nothing that the client can/will see/receive).

  13. #13
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: Encryption in J2ME

    Quote Originally Posted by petrib View Post
    Is the "other end" also under your control?
    Yes it is under my control. And i am decrypting the data and then saving to the mysql database at the server end. But still not getting any response.

    Please Reply
    Regards
    Rajan Verma

  14. #14
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: Encryption in J2ME

    So, are you on the server side sending the response? How? As a response to a HTTP request? Or through some other means? If so, what/how? Any errors in the code? Can you post the relevant pieces of code in case someone spots mistakes there? If you do, use the CODE tags so that the formatting remains readable.

  15. #15
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Re: Encryption in J2ME

    I am using JSR -172 Web service api and sending the data to the webservice in encrypted form. But from the server end i am not getting any response.
    One more thing, When i am sending the encrypted bytes to the webservice the application returns nothing or even closes sometimes. But when i am sending the encrypted string (converted encrypted bytes to string using new String(bytes,0,bytes.length) i am getting the null.

    At the server side i am also decrypting the data .
    Regards
    Rajan Verma

Similar Threads

  1. how to test j2me encryption code in speech call
    By elkourd in forum Mobile Java General
    Replies: 5
    Last Post: 2010-02-11, 19:21
  2. Drive Encryption in j2me
    By sign8th in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2010-02-02, 14:34
  3. Encryption of folder object in J2ME
    By thechameleon in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2009-07-31, 07:15
  4. Encryption in J2me and decryption in C# ??
    By iworktech_kiran in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2008-09-17, 15:09
  5. Data encryption/decryption in J2ME
    By divyas in forum Mobile Java General
    Replies: 1
    Last Post: 2006-05-18, 05:49

Posting Permissions

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