pascal
Global Moderator
J2me god
    
Posts: 3034
|
Does anybody know a small MD5 solution for j2me? preferably only 4-6kb in size  Or any other solutions for secure encoding, that can be fit into a small size.
|
|
|
|
|
Logged
|
|
|
|
|
|
Claymore
Global Moderator
J2me god
    
Posts: 4978

Quantity != Quality
|
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 )
|
|
|
|
|
Logged
|
|
|
|
pascal
Global Moderator
J2me god
    
Posts: 3034
|
well I was guessing something in 1kb didn't exist and the solutions I saw are more then 10kb 
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
|
|
|
|
|
Logged
|
|
|
|
krusty
New user

Posts: 37

|
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
|
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
|
|
|
|
|
Logged
|
|
|
|
ArcticBlueGames
Senior. Member
   
Posts: 317

|
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

|
only got a MD5 hash function in C++. 
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
|
thanks Arc, that actually looks promissing.
|
|
|
|
|
Logged
|
|
|
|
|
|
pascal
Global Moderator
J2me god
    
Posts: 3034
|
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
|
|
|
|