Home Help Search Login Register


J2meForums  |  General Category  |  Programming (Moderators: mikkom, shendley)  |  Topic: MD5 or other encryption « previous next »
Pages: [1] Print
Author

MD5 or other encryption

 (Read 902 times)
pascal
Global Moderator
J2me god
*****
Posts: 3034



View Profile WWW
MD5 or other encryption
« on: October 19, 2006, 01:31:39 pm »

Does anybody know a small MD5 solution for j2me? preferably only 4-6kb in size Smiley
Or any other solutions for secure encoding, that can be fit into a small size.
Logged

----------------------------------------------------
www.rumblex.com - Gaming Community
www.orangepixel.net - Game Development
michael_r_may
Member
**
Posts: 75


MIDlet I am


View Profile WWW
Re: MD5 or other encryption
« Reply #1 on: October 19, 2006, 01:35:52 pm »

I've been recommended these guys, but have not used them yet myself:

http://www.bouncycastle.org/

Michael
Logged

Claymore
Global Moderator
J2me god
*****
Posts: 4978


Quantity != Quality


View Profile WWW
Re: MD5 or other encryption
« Reply #2 on: October 19, 2006, 01:59:33 pm »

Ahh, when you said small, I assumed less than <1KB or something

I have a solution somewhere that you could use (for an obscene licencing fee of course Wink )
Logged

pascal
Global Moderator
J2me god
*****
Posts: 3034



View Profile WWW
Re: MD5 or other encryption
« Reply #3 on: October 19, 2006, 02:21:27 pm »

well I was guessing something in 1kb didn't exist Wink and the solutions I saw are more then 10kb  Cry

I tell you what, in return for a free license of your md5 code I let you license the API I'm building it into for free aswell Wink
Logged

----------------------------------------------------
www.rumblex.com - Gaming Community
www.orangepixel.net - Game Development
krusty
New user
*
Posts: 37



View Profile
Re: MD5 or other encryption
« Reply #4 on: October 19, 2006, 04:36:53 pm »

What sort of encryption are you looking for?
Does it have to conform to any well known standards?

Logged
pascal
Global Moderator
J2me god
*****
Posts: 3034



View Profile WWW
Re: MD5 or other encryption
« Reply #5 on: October 19, 2006, 04:40:00 pm »

preferably md5, but we might have another solution (something with RPN? I'm an encryption-noob)

still if someone has a light-weight md5 class : I WANT IT Smiley
Logged

----------------------------------------------------
www.rumblex.com - Gaming Community
www.orangepixel.net - Game Development
ArcticBlueGames
Senior. Member
****
Posts: 317



View Profile WWW
Re: MD5 or other encryption
« Reply #6 on: October 19, 2006, 04:55:19 pm »

http://www.jonh.net/~jonh/md5/MD5.java seems like it would work in J2ME.  The code imports several things that don't seem to be used in the code so you should be able to remove them fairly easily.

Edit: The file size is 14kb but I think when you compiled it then it would get close to your required size.  There are a lot of comments in the code.
« Last Edit: October 19, 2006, 04:57:06 pm by ArcticBlueGames » Logged

krusty
New user
*
Posts: 37



View Profile
Re: MD5 or other encryption
« Reply #7 on: October 19, 2006, 05:03:05 pm »

only got a MD5 hash function in C++. Sad

We wrote a very lightweight two way encryption, doesn't stick to any standards though, if you are interested.
Logged
pascal
Global Moderator
J2me god
*****
Posts: 3034



View Profile WWW
Re: MD5 or other encryption
« Reply #8 on: October 19, 2006, 06:56:39 pm »

thanks Arc, that actually looks promissing.
Logged

----------------------------------------------------
www.rumblex.com - Gaming Community
www.orangepixel.net - Game Development
mypapit
New user
*
Posts: 5



View Profile WWW
Re: MD5 or other encryption
« Reply #9 on: October 21, 2006, 04:48:45 pm »

You can take a look at this

http://mobilepit.com/10/compact-md5-class-library-for-j2me-javame-app.html
Logged

Mobile Programming Pit  - http://mobilepit.com
pascal
Global Moderator
J2me god
*****
Posts: 3034



View Profile WWW
Re: MD5 or other encryption
« Reply #10 on: October 21, 2006, 05:52:37 pm »

Arc's solution worked, and I think it is smaller then that fastmd5 code  (3kb was added to the jar, so that's doable)

Logged

----------------------------------------------------
www.rumblex.com - Gaming Community
www.orangepixel.net - Game Development
Pages: [1] Print 
J2meForums  |  General Category  |  Programming (Moderators: mikkom, shendley)  |  Topic: MD5 or other encryption « previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP J2meForums | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!