//取值之后进行
StringBuffer buffer=new StringBuffer();
for (int i = 0; i < enBytes.length; i++)
{
if(i!=0)
{
buffer.append(",");
}
buffer.append(enBytes[i]);
}
System.out.println("加密后的密文:" + buffer.toString());
String[] temp=buffer.toString().split(",");
byte[] b = new byte[temp.length];
for (int i = 0; i < temp.length; i++)
{
b[i] = Byte.parseByte(temp[i]);
}
String s1 = new String(enBytes);
byte[] 与字符串转换
推荐阅读
- SQL SERVER 数据库如何限制一列不能重复(已经有主键)
- Spring Boot文件上传
- API
- mybatis 一对一association ,一对多collection
- No cached version of org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE available for offline mode.
- 如何关闭idea的版本自动更新
- IDEA中使用git合并分支的过程报错:cant checkout because of unmerged files
- 什么是 Redis?
- List中contains()方法和indexOf()方法
- 策略模式(出现大量if,else,场景)