package com.ebao.frontsys.batch.config;import java.security.Key;import java.security.SecureRandom;import javax.crypto.Cipher;import javax.crypto.KeyGenerator;import sun.misc.BASE64Decoder;import sun.m
话不多说,直接上代码:默认会对字符串的前2048个字符进行加密,可以根据需要进行调整package com.ebao.frontsys.tools;import java.nio.charset.Charset;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;import org.ap
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号