password protection [message #466414] |
Tue, 10 January 2006 08:44  |
Eclipse User |
|
|
|
I want to protect my SWT application with a password. I have already
finished the password-entry field and matching of the password with MD5
checksum.
the only problem I have and can't find a solution for is, where I shall
save the entered password. At the moment I write the MD5 checksum into a
flatfile which - obviously - is not a good solution.
does anybody know how/where I could save the set password that nobody
unauthorized can delete ot?
thanks for any help in advance.
dominik
|
|
|
|
|
|
|
|
|
|
|
Re: password protection [message #466565 is a reply to message #466432] |
Wed, 11 January 2006 12:29  |
Eclipse User |
|
|
|
There's an AuthorizationDatabase for tracking user passwords already in Eclipse. It's part of the core platform.
Platform.addAuthorizationInfo()
Platform.getAuthorizationInfo()
You can essentially store any data that you want, and it's encrypted to disk. Of course, given that the password is known in the code, it's not that impossible to reverse engineer it, but much the same could be said about a database.
<a href=" http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/core/runtime/Platform.html#g etAuthorizationInfo(java.net.URL,%20java.lang.String,%20java.lang.String)"> http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/core/runtime/Platform.html#a ddAuthorizationInfo (java.net.URL,%20java.lang.String,%20java.lang.String,%20jav a.util.Map) </a>
<a href=" http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/core/runtime/Platform.html#g etAuthorizationInfo(java.net.URL,%20java.lang.String,%20java.lang.String)</a>
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.15000 seconds