Results 1 to 10 of 10
  1. #1
    Mike
    Guest
    Hi,

    I have a Nokia 3205i phone and I am new to J2ME development.

    I'd like to know how I can encrypt and decrypt an array of bytes within

    a midlet?


    I can't seem to find any API for this. I'd like to use the triple-DES
    algorythm.


    Thanks for your help,


    Mike.




    See More: How can I encrypt/decript within a MIDlet?




  2. #2
    Al Reynolds
    Guest

    Re: How can I encrypt/decript within a MIDlet?

    Someone told me there was an encryption API called
    Bouncy Castle. Seriously, I'm not joking!

    Al





  3. #3
    Mike
    Guest

    Re: How can I encrypt/decript within a MIDlet?

    You're right; http://www.bouncycastle.org

    I'm not sure how I'll be able to fit it in a MIDlet though. It looks
    like it would be more suitable for "Palm" maybe.

    I'm having troubles figuring out how I can get this API to fit within
    the 64K JAR limit.

    Can someone help me?

    Thanks,

    Mike.




  4. #4
    Mike
    Guest

    Re: How can I encrypt/decript within a MIDlet?

    You're right; http://www.bouncycastle.org

    I'm not sure how I'll be able to fit it in a MIDlet though. It looks
    like it would be more suitable for "Palm" maybe.

    I'm having troubles figuring out how I can get this API to fit within
    the 64K JAR limit.

    Can someone help me?

    Thanks,

    Mike.




  5. #5
    Mike
    Guest

    Re: How can I encrypt/decript within a MIDlet?

    Hi Al, you're right, it's at http://www.bouncycastle.org

    It's a bit hard to understand. It looks like it's made for bigger
    hosts, like a Palm. I'm having trouble understanding how I'm going to
    get this to fit in a MIDlet under 64K.

    Can someone help me?

    Thanks,

    Mike.




  6. #6
    Mike
    Guest

    Re: How can I encrypt/decript within a MIDlet?

    Hi Al, you're right, it's at http://www.bouncycastle.org

    It's a bit hard to understand. It looks like it's made for bigger
    hosts, like a Palm. I'm having trouble understanding how I'm going to
    get this to fit in a MIDlet under 64K.

    Can someone help me?

    Thanks,

    Mike.




  7. #7
    Mike
    Guest

    Re: How can I encrypt/decript within a MIDlet?

    Hi Al, you're right, it's at http://www.bouncycastle.org

    It's a bit hard to understand. It looks like it's made for bigger
    hosts, like a Palm. I'm having trouble understanding how I'm going to
    get this to fit in a MIDlet under 64K.

    Can someone help me?

    Thanks,

    Mike.




  8. #8
    Mike
    Guest

    Re: How can I encrypt/decript within a MIDlet?

    Hi Al, you're right, it's at http://www.bouncycastle.org

    It's a bit hard to understand. It looks like it's made for bigger
    hosts, like a Palm. I'm having trouble understanding how I'm going to
    get this to fit in a MIDlet under 64K.

    Can someone help me?

    Thanks,

    Mike.




  9. #9
    Al Reynolds
    Guest

    Re: How can I encrypt/decript within a MIDlet?


    "Mike" <[email protected]> wrote:
    > Hi Al, you're right, it's at http://www.bouncycastle.org
    >
    > It's a bit hard to understand. It looks like it's made for bigger
    > hosts, like a Palm. I'm having trouble understanding how I'm going to
    > get this to fit in a MIDlet under 64K.


    I'm not sure you can. "Beginning J2ME: From Novice to Professional"
    by Sing Li and Jonathan Knudsen (who developed Bouncy Castle)
    has a Chapter 18 Protecting Network Data which details the process,
    but if you're looking at a 64k limit I'm guessing you're not talking about
    J2ME, or if you are then it must be MIDP 1.0.

    Anyway, he says you need to go to www.bouncycastle.org, follow the
    link for latest releases, and choose the J2ME release of the Lightweight
    BouncyCastle API. The current version when the book was published
    was 1.27.

    Hope this helps,
    Al

    PS Don't post the same message 6 times - you'd be
    surprised how many people will ignore it as a result. ;-]





  10. #10
    Mike
    Guest

    Re: How can I encrypt/decript within a MIDlet?

    Hi Al,

    Thank you for your reply.

    I've found the solution. I'm using the J2ME build from bountycastle
    (v1.3.1 now) and when I obfuscate the package, it comes down to 30k.

    PS You'd be surprised how many people encounter problems posting a
    message using Google Groups. One way to notice someone encountered such
    problem is that the repeated messages are exactly the same and the time
    of the messages are very close. ;-]

    Al Reynolds wrote:
    > "Mike" <[email protected]> wrote:
    > > Hi Al, you're right, it's at http://www.bouncycastle.org
    > >
    > > It's a bit hard to understand. It looks like it's made for bigger
    > > hosts, like a Palm. I'm having trouble understanding how I'm going to
    > > get this to fit in a MIDlet under 64K.

    >
    > I'm not sure you can. "Beginning J2ME: From Novice to Professional"
    > by Sing Li and Jonathan Knudsen (who developed Bouncy Castle)
    > has a Chapter 18 Protecting Network Data which details the process,
    > but if you're looking at a 64k limit I'm guessing you're not talking about
    > J2ME, or if you are then it must be MIDP 1.0.
    >
    > Anyway, he says you need to go to www.bouncycastle.org, follow the
    > link for latest releases, and choose the J2ME release of the Lightweight
    > BouncyCastle API. The current version when the book was published
    > was 1.27.
    >
    > Hope this helps,
    > Al
    >
    > PS Don't post the same message 6 times - you'd be
    > surprised how many people will ignore it as a result. ;-]





  • Similar Threads