签名和验证-Sign
对于签名算法,Hutool封装了JDK的,具体介绍见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Signature:
使用
Sign sign = SecureUtil.sign(SignAlgorithm.MD5withRSA);
boolean verify = sign.verify(data, signed);
对于签名算法,Hutool封装了JDK的,具体介绍见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Signature:
Sign sign = SecureUtil.sign(SignAlgorithm.MD5withRSA);
boolean verify = sign.verify(data, signed);
本文档使用 全库网 构建