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