已采納回答 / 幕布斯7299626
對于這個問題,給大家推薦一片技術(shù)博客http://blog.csdn.net/u013991521/article/details/48207969
2015-03-15
最新回答 / 叫我杰哥
????????????String str="imooc security"; ? ? ? ? ? ?Cipher cipher=Cipher.getInstance("DES"); ? ? ? ? ? ?cipher.init(Cipher.ENCRYPT_MODE, senderSecretKey); ? ? ? ? ? ?byte[] bs=cipher.doFinal(str.getBytes());加密代碼改成這樣就行了
2015-02-27