最新回答 / 叫我杰哥
String str="imooc security"; Cipher cipher=Cipher.getInstance("DES"); cipher.init(Cipher.ENCRYPT_MODE, senderSecretKey); byte[] bs=cipher.doFinal(str.getBytes());加密代码改成这样就行了
2015-02-27