Results 1 to 10 of 10
- 01-06-2006, 08:16 AM #1MikeGuest
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?
- 01-06-2006, 01:59 PM #2Al ReynoldsGuest
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
- 01-08-2006, 07:49 AM #3MikeGuest
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.
- 01-08-2006, 07:56 AM #4MikeGuest
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.
- 01-08-2006, 08:02 AM #5MikeGuest
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.
- 01-08-2006, 08:55 AM #6MikeGuest
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.
- 01-08-2006, 09:41 AM #7MikeGuest
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.
- 01-08-2006, 11:59 AM #8MikeGuest
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.
- 01-10-2006, 12:50 AM #9Al ReynoldsGuest
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. ;-]
- 01-18-2006, 09:01 AM #10MikeGuest
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
- General Cell Phone Forum
- General Cell Phone Forum
- Nokia
- Samsung
- Nokia
Тур до Львова: кав'ярні, екскурсії, визначн
in Chit Chat