上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: Hutool工具类生成二维码 示例代码: import cn.hutool.core.io.FileUtil; import cn.hutool.extra.qrcode.QrCodeUtil; import cn.hutool.extra.qrcode.QrConfig; import com.g 阅读全文
posted @ 2021-09-09 17:53 娜梓 阅读(2462) 评论(0) 推荐(0) 编辑
摘要: 一、Hutool-crypto概述 加密分为三种: 1、对称加密(symmetric),例如:AES、EDS等 2、非对称加密(asymmetric),例如:RSA、DSA等 3、摘要加密(digest),例如:MD5、SHA-1、SHA-256、HMAC等 二、对称加密 对称加密(也叫私钥加密)指 阅读全文
posted @ 2021-09-09 16:31 娜梓 阅读(11787) 评论(1) 推荐(2) 编辑
摘要: 1、创建JSONObject JSONObject jsonObject = JSONUtil.createObj() .put("姓名","张三") .put("年龄",12) .put("国籍","中国") .put("爱好","徒步"); System.out.println(jsonObje 阅读全文
posted @ 2021-09-09 11:40 娜梓 阅读(7414) 评论(0) 推荐(0) 编辑
摘要: 1、读取配置文件:example.setting [demo] ds.setting.path = config/other.setting driver = com.mysql.jdbc.Driver url = jdbc:mysql://fedora.vmware:3306/extractor 阅读全文
posted @ 2021-09-09 10:46 娜梓 阅读(3480) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.1.0</version> </dependency> 操作图片示例代码: import cn.hutool.core.i 阅读全文
posted @ 2021-09-08 17:52 娜梓 阅读(1957) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.1.0</version> </dependency> 代码示例: import cn.hutool.core.colle 阅读全文
posted @ 2021-09-08 17:04 娜梓 阅读(886) 评论(0) 推荐(0) 编辑
摘要: 推荐博文:https://mp.weixin.qq.com/s/RNHLZGPD9Ysbxb1FNDn6EA? 1、CRC原理: 2、CRC校验码的计算示例: 除数是随机数或按标准选定,CRC的关键是如何求出余数(CRC校验码)。假设选择的CRC生成多项式为G(x)=x^4+x^3+1 要求计算出二 阅读全文
posted @ 2021-09-08 15:32 娜梓 阅读(3636) 评论(0) 推荐(0) 编辑
摘要: pom.xml <!--国密--> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> <version>1.56</version> </dependency> 1、Cip 阅读全文
posted @ 2021-09-03 17:56 娜梓 阅读(6382) 评论(0) 推荐(0) 编辑
摘要: import javax.crypto.Cipher; import java.security.*; import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPublicKey; impor 阅读全文
posted @ 2021-09-03 17:34 娜梓 阅读(521) 评论(0) 推荐(0) 编辑
摘要: import org.apache.tomcat.util.codec.binary.Base64; public class Base64Coded { public static void main(String[] args) { String string = "张三"; //编码 Stri 阅读全文
posted @ 2021-09-03 17:31 娜梓 阅读(237) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页