然而,不安全。你的class很容易让人变成*.java 你想像一下别人看到你的所有源代码会怎样。。

解决方案 »

  1.   

    没多大关系。你可以将验证用户名和密码的程序做成Servlet放在服务器端,这样会好一点
      

  2.   

    applet+servlet可以实现,因为你的通过servlet来保存文件,看一看www.dukejava.com
    有无你想要的东东,我的定制代码提取便有你所要的功能,不过我没有加入修改密码功能
      

  3.   

    There's one way to get around possible use of Servelet.
    Use one cryptologic algorithm class in Java package to generate a key for a given password, then check the password supplied by the client applet against the key.
    Refer to Java security API for details.
      

  4.   

    Hi,lionet ... 你所说的是反编译吧? 能介绍一些比较好的反编译器吗? mocha是最好的吗?
    另外,在JBuilder中使用Obfuscate功能,可以在一定程度上防止反编译的 :)