cipher和ciperoutputstream使用解密

ByteArrayOutputStream baos=new ByteArrayOutputStream();

cipher cipher=xxx;

CipherOutputStream ount=new CipherOutputStream(

out.write(bytedata,0,bytedata.length)

必须要out.close(),

才能用baos.tostring()

如果不关闭就tostring会有部分读取不出来

原文地址:https://www.cnblogs.com/zhy-1992/p/14663227.html