Java applet security?

Discussion about the creation of websites in general, HTML, PHP, Java.

Java applet security?

Postby alex8022 on Wed Aug 17, 2005 2:30 am

Hello, I am developing a Java applet that would require a username/password (in other words an applet that contains secure information) and am wondering if that information would really be secure and if (or how hard) it would be possible for someone to decompile my applet and see all the source code? I am using a free server so I cannot use php or perl or other languages.
alex8022
Newbie
Newbie
 
Posts: 4
Joined: Wed Aug 17, 2005 2:10 am

Postby jujurevenge on Fri Aug 19, 2005 10:25 am

Umm, I think you may want to obfuscate youre applet.
Full Version Zelix Klassmaster - http://antiyou2u.com/downloads/zelix.zip
jujurevenge
Newbie
Newbie
 
Posts: 12
Joined: Fri Aug 19, 2005 10:20 am

Postby dante on Wed Aug 24, 2005 6:26 am

You could just hash the passwords in the applet...that would deter people, at the very least. Depending on how secure your password is.
Image
dante
Newbie
Newbie
 
Posts: 18
Joined: Wed Aug 24, 2005 6:05 am

Postby evidence on Wed Aug 24, 2005 11:20 am

look on some script sites, if you are good with java programming, set up a retry limit to 3 tries every hour just incase you run into someone with a brute force password hacker, and make your password hard to guess Smile
evidence
Newbie
Newbie
 
Posts: 17
Joined: Wed Aug 24, 2005 4:15 am

Postby thoriumbr on Thu Aug 25, 2005 3:21 pm

hashing works only if the applet have to authenticate the password received... if the applet is the client trying to authenticate in some site hashing will not work...
if your applet is the client you can write a very complicated encripting function, that uses lots of objects reading the properties one of another...
e.g.
(translate this to java... Smile )

obj1.setprop1(0x0f0f90f XOR 0x293f)
obj2.setprop1(0x9877f XOR 734)
...
pass = substring(obj1.getprop1(), 2,4) + (obj2.getprop1 XOR obj3.classname) + ...

then even if someone decompile your script will be very very hard to discover your password...
thoriumbr
Contributer
Contributer
 
Posts: 26
Joined: Tue Aug 23, 2005 1:49 pm
Location: Limeira, SP, Brazil

Postby beetleflux on Sat Sep 10, 2005 5:13 pm

As were speaking of java applet security. What if we need to connect to a database? Then someone could just decompile the class file and grap the password. How do I solve that problem ?
beetleflux
Newbie
Newbie
 
Posts: 14
Joined: Sat Sep 10, 2005 4:57 pm
Location: Norway

Postby Ayukie on Thu Sep 15, 2005 8:53 am

beetleflux wrote:As were speaking of java applet security. What if we need to connect to a database? Then someone could just decompile the class file and grap the password. How do I solve that problem ?


Hmzz ... juz seperate class file .. jar them upz and den embed in ur applet ... or worse case get the user to key in the password themselves and using cookies and having a guest sql user just for some generic stuffs selection in ya database ?
Ayukie
Contributer
Contributer
 
Posts: 59
Joined: Wed Sep 07, 2005 9:16 am


Return to General Webmastering

Who is online

Users browsing this forum: No registered users and 1 guest

cron