Meaningless Drivel is fun!*
The moose likes Java Micro Edition and the fly likes Password protection to Midlet in .Jad file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Password protection to Midlet in .Jad file" Watch "Password protection to Midlet in .Jad file" New topic
Author

Password protection to Midlet in .Jad file

leena viswan
Greenhorn

Joined: Aug 02, 2004
Posts: 3
Can any one help me to know whether it is possible to provide password protection to MIdlet using .Jad file.
Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
Could you closer specify your problem.
Dave Butler
Greenhorn

Joined: Jul 19, 2004
Posts: 9
Here's one way of doing it: hash a passcode and store it as a custom attribute in the JAD file. In the MIDlet startup code, get the user to enter the passcode, hash it and compare to the JAD attribute's value. For a secure solution use MD5. And consider avoiding annoying the user by flagging a successful entry of the passcode in an RMS store (and check that flag on subsequent application starts). All of this adds a few KBs to MIDlet's JAR size.

As a suggestion, use numbers for a passcode - users understand the concept of a PIN.


Hope this helps

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Password protection to Midlet in .Jad file
 
Similar Threads
MIDlet-Data-Size
deloyping MIDLET on any server
Help with SecurityException in J2ME WTK 2.5.1?
how to create jad file
security issue