用delphi进行加密。
用java进行解密。
求源码。非常感谢
[email protected]

解决方案 »

  1.   

    http://hi.baidu.com/jiljil/blog/item/6174a8cc0aa43e1300e9284e.html
      

  2.   

    http://blog.csdn.net/irvine007/archive/2006/08/02/1009739.aspx
      

  3.   

    谁能提供delphi加密,java解密 源码。在开帖送100分
      

  4.   

    我给你提供java解密的
    public static byte[] decrypt(byte[] data) throws Exception {
    SecureRandom sr = new SecureRandom();
    DESKeySpec dks = new DESKeySpec(COMMONSECRETKET.getBytes());
    SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(ALGORITHM);
    SecretKey securekey = keyFactory.generateSecret(dks);
    Cipher cipher = Cipher.getInstance(ALGORITHM);
    cipher.init(Cipher.DECRYPT_MODE, securekey, sr);
    return cipher.doFinal(data);
    }
    其中COMMONSECRETKET是公用的key(字符串形式),和delphi一样的就可以了