Skip navigation links
A B C D E F G H I K L M O P R S T U V W X Z 

A

AbstractAsymmetricCrypto<T extends AbstractAsymmetricCrypto<T>> - Class in cn.hutool.crypto.asymmetric
抽象的非对称加密对象,包装了加密和解密为Hex和Base64的封装
AbstractAsymmetricCrypto(String, PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.AbstractAsymmetricCrypto
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
addProvider(Provider) - Static method in class cn.hutool.crypto.SecureUtil
增加加密解密的算法提供者,默认优先使用,例如: addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
aes() - Static method in class cn.hutool.crypto.SecureUtil
AES加密,生成随机KEY。
aes(byte[]) - Static method in class cn.hutool.crypto.SecureUtil
AES加密
例: AES加密:aes(key).encrypt(data) AES解密:aes(key).decrypt(data)
AES - Class in cn.hutool.crypto.symmetric
AES加密算法实现
高级加密标准(英语:Advanced Encryption Standard,缩写:AES),在密码学中又称Rijndael加密法
对于Java中AES的默认模式是:AES/ECB/PKCS5Padding,如果使用CryptoJS,请调整为:padding: CryptoJS.pad.Pkcs7 相关概念说明: mode: 加密算法模式,是用来描述加密算法(此处特指分组密码,不包括流密码,)在加密时对明文分组的模式,它代表了不同的分组方式 padding: 补码方式是在分组密码中,当明文长度不是分组长度的整数倍时,需要在最后一个分组中填充一些数据使其凑满一个分组的长度。
AES() - Constructor for class cn.hutool.crypto.symmetric.AES
构造,默认AES/ECB/PKCS5Padding,使用随机密钥
AES(byte[]) - Constructor for class cn.hutool.crypto.symmetric.AES
构造,使用默认的AES/ECB/PKCS5Padding
AES(SecretKey) - Constructor for class cn.hutool.crypto.symmetric.AES
构造,使用默认的AES/ECB/PKCS5Padding
AES(Mode, Padding) - Constructor for class cn.hutool.crypto.symmetric.AES
构造,使用随机密钥
AES(Mode, Padding, byte[]) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(Mode, Padding, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(Mode, Padding, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(Mode, Padding, SecretKey, byte[]) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(Mode, Padding, SecretKey, AlgorithmParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(String, String) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(String, String, byte[]) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(String, String, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(String, String, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
AES(String, String, SecretKey, AlgorithmParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.AES
构造
algorithm - Variable in class cn.hutool.crypto.asymmetric.BaseAsymmetric
算法
ALGORITHM_NAME - Static variable in class cn.hutool.crypto.digest.SM3
 
ALGORITHM_NAME - Static variable in class cn.hutool.crypto.symmetric.ChaCha20
 
ALGORITHM_NAME - Static variable in class cn.hutool.crypto.symmetric.SM4
 
Argon2 - Class in cn.hutool.crypto.digest
Argon2加密实现
Argon2() - Constructor for class cn.hutool.crypto.digest.Argon2
构造,默认使用Argon2Parameters.ARGON2_id类型
Argon2(int) - Constructor for class cn.hutool.crypto.digest.Argon2
构造
Argon2(Argon2Parameters.Builder) - Constructor for class cn.hutool.crypto.digest.Argon2
构造
ASN1Util - Class in cn.hutool.crypto
ASN.1 – Abstract Syntax Notation dot one,抽象记法1 工具类。
ASN1Util() - Constructor for class cn.hutool.crypto.ASN1Util
 
AsymmetricAlgorithm - Enum in cn.hutool.crypto.asymmetric
非对称算法类型
see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
AsymmetricCrypto - Class in cn.hutool.crypto.asymmetric
非对称加密算法 1、签名:使用私钥加密,公钥解密。
AsymmetricCrypto(AsymmetricAlgorithm) - Constructor for class cn.hutool.crypto.asymmetric.AsymmetricCrypto
构造,创建新的私钥公钥对
AsymmetricCrypto(String) - Constructor for class cn.hutool.crypto.asymmetric.AsymmetricCrypto
构造,创建新的私钥公钥对
AsymmetricCrypto(AsymmetricAlgorithm, String, String) - Constructor for class cn.hutool.crypto.asymmetric.AsymmetricCrypto
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
AsymmetricCrypto(AsymmetricAlgorithm, byte[], byte[]) - Constructor for class cn.hutool.crypto.asymmetric.AsymmetricCrypto
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
AsymmetricCrypto(AsymmetricAlgorithm, PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.AsymmetricCrypto
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
AsymmetricCrypto(String, String, String) - Constructor for class cn.hutool.crypto.asymmetric.AsymmetricCrypto
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
AsymmetricCrypto(String, byte[], byte[]) - Constructor for class cn.hutool.crypto.asymmetric.AsymmetricCrypto
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
AsymmetricCrypto(String, PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.AsymmetricCrypto
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
AsymmetricDecryptor - Interface in cn.hutool.crypto.asymmetric
非对称解密器接口,提供: 从bytes解密 从Hex(16进制)解密 从Base64解密 从BCD解密
AsymmetricEncryptor - Interface in cn.hutool.crypto.asymmetric
非对称加密器接口,提供: 加密为bytes 加密为Hex(16进制) 加密为Base64 加密为BCD

B

BaseAsymmetric<T extends BaseAsymmetric<T>> - Class in cn.hutool.crypto.asymmetric
非对称基础,提供锁、私钥和公钥的持有
BaseAsymmetric(String, PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.BaseAsymmetric
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
BCHMacEngine - Class in cn.hutool.crypto.digest.mac
BouncyCastle的HMAC算法实现引擎,使用Mac 实现摘要
当引入BouncyCastle库时自动使用其作为Provider
BCHMacEngine(Digest, byte[], byte[]) - Constructor for class cn.hutool.crypto.digest.mac.BCHMacEngine
构造
BCHMacEngine(Digest, byte[]) - Constructor for class cn.hutool.crypto.digest.mac.BCHMacEngine
构造
BCHMacEngine(Digest, CipherParameters) - Constructor for class cn.hutool.crypto.digest.mac.BCHMacEngine
构造
BCHMacEngine(HMac, CipherParameters) - Constructor for class cn.hutool.crypto.digest.mac.BCHMacEngine
构造
BCMacEngine - Class in cn.hutool.crypto.digest.mac
BouncyCastle的MAC算法实现引擎,使用Mac 实现摘要
当引入BouncyCastle库时自动使用其作为Provider
BCMacEngine(Mac, CipherParameters) - Constructor for class cn.hutool.crypto.digest.mac.BCMacEngine
构造
BCrypt - Class in cn.hutool.crypto.digest
BCrypt加密算法实现。
BCrypt() - Constructor for class cn.hutool.crypto.digest.BCrypt
 
bcrypt(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
生成Bcrypt加密后的密文
bcryptCheck(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
验证密码是否与Bcrypt加密后的密文匹配
BCUtil - Class in cn.hutool.crypto
Bouncy Castle相关工具类封装
BCUtil() - Constructor for class cn.hutool.crypto.BCUtil
 

C

CBCBlockCipherMacEngine - Class in cn.hutool.crypto.digest.mac
CBCBlockCipherMac实现的MAC算法,使用CBC Block方式
CBCBlockCipherMacEngine(BlockCipher, int, Key, byte[]) - Constructor for class cn.hutool.crypto.digest.mac.CBCBlockCipherMacEngine
构造
CBCBlockCipherMacEngine(BlockCipher, int, byte[], byte[]) - Constructor for class cn.hutool.crypto.digest.mac.CBCBlockCipherMacEngine
构造
CBCBlockCipherMacEngine(BlockCipher, int, Key) - Constructor for class cn.hutool.crypto.digest.mac.CBCBlockCipherMacEngine
构造
CBCBlockCipherMacEngine(BlockCipher, int, byte[]) - Constructor for class cn.hutool.crypto.digest.mac.CBCBlockCipherMacEngine
构造
CBCBlockCipherMacEngine(BlockCipher, int, CipherParameters) - Constructor for class cn.hutool.crypto.digest.mac.CBCBlockCipherMacEngine
构造
CBCBlockCipherMacEngine(CBCBlockCipherMac, CipherParameters) - Constructor for class cn.hutool.crypto.digest.mac.CBCBlockCipherMacEngine
构造
CERT_TYPE_X509 - Static variable in class cn.hutool.crypto.KeyUtil
Certification类型:X.509
ChaCha20 - Class in cn.hutool.crypto.symmetric
ChaCha20算法实现
ChaCha系列流密码,作为salsa密码的改良版,具有更强的抵抗密码分析攻击的特性,“20”表示该算法有20轮的加密计算。
ChaCha20(byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.ChaCha20
构造
changeC1C2C3ToC1C3C2(byte[], ECDomainParameters) - Static method in class cn.hutool.crypto.SmUtil
bc加解密使用旧标c1||c2||c3,此方法在加密后调用,将结果转化为c1||c3||c2
changeC1C3C2ToC1C2C3(byte[], ECDomainParameters) - Static method in class cn.hutool.crypto.SmUtil
bc加解密使用旧标c1||c3||c2,此方法在解密前调用,将密文转化为c1||c2||c3再去解密
checkpw(String, String) - Static method in class cn.hutool.crypto.digest.BCrypt
检查明文密码文本是否匹配加密后的文本
CipherMode - Enum in cn.hutool.crypto
Cipher模式的枚举封装
cipherWrapper - Variable in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
Cipher负责完成加密或解密工作
CipherWrapper - Class in cn.hutool.crypto
Cipher包装类,提供初始化模式等额外方法
包装之后可提供自定义或默认的: AlgorithmParameterSpec SecureRandom
CipherWrapper(String) - Constructor for class cn.hutool.crypto.CipherWrapper
构造
CipherWrapper(Cipher) - Constructor for class cn.hutool.crypto.CipherWrapper
构造
cn.hutool.crypto - package cn.hutool.crypto
加密解密模块,实现了对JDK中加密解密算法的封装,入口为SecureUtil,实现了: 1.
cn.hutool.crypto.asymmetric - package cn.hutool.crypto.asymmetric
非对称加密的实现,包括RSA等
cn.hutool.crypto.digest - package cn.hutool.crypto.digest
摘要加密算法实现,入口为DigestUtil
cn.hutool.crypto.digest.mac - package cn.hutool.crypto.digest.mac
HMAC,全称为“Hash Message Authentication Code”,中文名“散列消息鉴别码”
主要是利用哈希算法,以一个密钥和一个消息为输入,生成一个消息摘要作为输出。
cn.hutool.crypto.digest.otp - package cn.hutool.crypto.digest.otp
OTP 是 One-Time Password的简写,表示一次性密码。
cn.hutool.crypto.symmetric - package cn.hutool.crypto.symmetric
对称加密算法实现,包括AES、DES、DESede等
cn.hutool.crypto.symmetric.fpe - package cn.hutool.crypto.symmetric.fpe
 
create() - Static method in class cn.hutool.crypto.digest.MD5
创建MD5实例
create() - Static method in class cn.hutool.crypto.digest.SM3
创建SM3实例
createBouncyCastleProvider() - Static method in class cn.hutool.crypto.ProviderFactory
创建Bouncy Castle 提供者
如果用户未引入bouncycastle库,则此方法抛出NoClassDefFoundError 异常
createCipher(String) - Static method in class cn.hutool.crypto.SecureUtil
创建Cipher
createDigester() - Method in class cn.hutool.crypto.digest.DigesterFactory
创建Digester
createEngine(String, Key) - Static method in class cn.hutool.crypto.digest.mac.MacEngineFactory
根据给定算法和密钥生成对应的MacEngine
createEngine(String, Key, AlgorithmParameterSpec) - Static method in class cn.hutool.crypto.digest.mac.MacEngineFactory
根据给定算法和密钥生成对应的MacEngine
createHmacSm3Engine(byte[]) - Static method in class cn.hutool.crypto.SmUtil
创建HmacSM3算法的MacEngine
createJdkMessageDigest(String) - Static method in class cn.hutool.crypto.SecureUtil
创建MessageDigest,使用JDK默认的Provider
createMac(String) - Static method in class cn.hutool.crypto.SecureUtil
创建Mac
createMessageDigest(String) - Static method in class cn.hutool.crypto.SecureUtil
createMessageDigester() - Method in class cn.hutool.crypto.digest.DigesterFactory
createOpenSSHPrivateKeySpec(byte[]) - Static method in class cn.hutool.crypto.ECKeyUtil
创建OpenSSHPrivateKeySpec
createOpenSSHPublicKeySpec(byte[]) - Static method in class cn.hutool.crypto.ECKeyUtil
创建OpenSSHPublicKeySpec
createSignature(String) - Static method in class cn.hutool.crypto.SecureUtil
创建Signature
crypt(byte[], byte[], int, int[]) - Method in class cn.hutool.crypto.digest.BCrypt
加密密文
crypt(byte[]) - Method in class cn.hutool.crypto.symmetric.RC4
加密或解密指定值,调用此方法前需初始化密钥
CryptoException - Exception in cn.hutool.crypto
加密异常
CryptoException(Throwable) - Constructor for exception cn.hutool.crypto.CryptoException
 
CryptoException(String) - Constructor for exception cn.hutool.crypto.CryptoException
 
CryptoException(String, Object...) - Constructor for exception cn.hutool.crypto.CryptoException
 
CryptoException(String, Throwable) - Constructor for exception cn.hutool.crypto.CryptoException
 
CryptoException(String, Throwable, boolean, boolean) - Constructor for exception cn.hutool.crypto.CryptoException
 
CryptoException(Throwable, String, Object...) - Constructor for exception cn.hutool.crypto.CryptoException
 

D

decode(InputStream) - Static method in class cn.hutool.crypto.ASN1Util
读取ASN.1数据流为ASN1Object
decode(String) - Static method in class cn.hutool.crypto.SecureUtil
解码字符串密钥,可支持的编码如下: 1.
decodeECPoint(String, String) - Static method in class cn.hutool.crypto.BCUtil
解码恢复EC压缩公钥,支持Base64和Hex编码,(基于BouncyCastle)
见:https://www.cnblogs.com/xinzhao/p/8963724.html
decodeECPoint(byte[], String) - Static method in class cn.hutool.crypto.BCUtil
解码恢复EC压缩公钥,支持Base64和Hex编码,(基于BouncyCastle)
decodeECPoint(String, String) - Static method in class cn.hutool.crypto.KeyUtil
解码恢复EC压缩公钥,支持Base64和Hex编码,(基于BouncyCastle)
见:https://www.cnblogs.com/xinzhao/p/8963724.html
decodeECPoint(byte[], String) - Static method in class cn.hutool.crypto.KeyUtil
解码恢复EC压缩公钥,支持Base64和Hex编码,(基于BouncyCastle)
见:https://www.cnblogs.com/xinzhao/p/8963724.html
decodeECPrivateKey(byte[], String) - Static method in class cn.hutool.crypto.BCUtil
解码恢复EC私钥,支持Base64和Hex编码,(基于BouncyCastle)
decodePrivateKeyParams(byte[]) - Static method in class cn.hutool.crypto.ECKeyUtil
尝试解析转换各种类型私钥为ECPrivateKeyParameters,支持包括: D值 PKCS#8 PKCS#1
decodePublicKeyParams(byte[]) - Static method in class cn.hutool.crypto.ECKeyUtil
尝试解析转换各种类型公钥为ECPublicKeyParameters,支持包括: Q值 X.509 PKCS#1
decrypt(byte[], KeyType) - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
 
decrypt(byte[], KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
解密
decrypt(InputStream, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
解密
decrypt(String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
从Hex或Base64字符串解密,编码为UTF-8格式
decrypt(byte[], KeyType) - Method in class cn.hutool.crypto.asymmetric.RSA
 
decrypt(byte[]) - Method in class cn.hutool.crypto.asymmetric.SM2
使用私钥解密
decrypt(byte[], KeyType) - Method in class cn.hutool.crypto.asymmetric.SM2
解密
decrypt(byte[], CipherParameters) - Method in class cn.hutool.crypto.asymmetric.SM2
解密
decrypt(PKCS8EncryptedPrivateKeyInfo, char[]) - Static method in class cn.hutool.crypto.OpensslKeyUtil
解密PKCS8EncryptedPrivateKeyInfoPrivateKeyInfo
decrypt(PEMEncryptedKeyPair, char[]) - Static method in class cn.hutool.crypto.OpensslKeyUtil
解密PEMEncryptedKeyPairPEMKeyPair
decrypt(String) - Method in class cn.hutool.crypto.symmetric.fpe.FPE
解密
decrypt(char[]) - Method in class cn.hutool.crypto.symmetric.fpe.FPE
加密
decrypt(byte[], Charset) - Method in class cn.hutool.crypto.symmetric.RC4
解密
decrypt(byte[]) - Method in class cn.hutool.crypto.symmetric.RC4
解密,使用默认编码UTF-8
decrypt(String) - Method in class cn.hutool.crypto.symmetric.RC4
解密Hex(16进制)或Base64表示的字符串,使用默认编码UTF-8
decrypt(String, Charset) - Method in class cn.hutool.crypto.symmetric.RC4
解密Hex(16进制)或Base64表示的字符串
decrypt(byte[]) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
 
decrypt(InputStream, OutputStream, boolean) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
 
decrypt(byte[]) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密
decrypt(InputStream, OutputStream, boolean) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密,针对大数据量,结束后不关闭流
decrypt(String) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密Hex(16进制)或Base64表示的字符串
decrypt(InputStream) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密,会关闭流
decrypt(CharSequence, CharSequence) - Static method in class cn.hutool.crypto.symmetric.Vigenere
解密
decrypt(byte[]) - Method in class cn.hutool.crypto.symmetric.XXTEA
 
decrypt(InputStream, OutputStream, boolean) - Method in class cn.hutool.crypto.symmetric.XXTEA
 
decryptBlockSize - Variable in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
解密的块大小
decryptFromBcd(String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
解密BCD
decryptFromBcd(String, KeyType, Charset) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
Deprecated.
由于对于ASCII的编码解码有缺陷,且这种BCD实现并不规范,因此会在6.0.0中移除
decryptStr(String, KeyType, Charset) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
解密为字符串,密文需为Hex(16进制)或Base64字符串
decryptStr(String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
解密为字符串,密文需为Hex(16进制)或Base64字符串
decryptStr(byte[], Charset) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密为字符串
decryptStr(byte[]) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密为字符串,默认UTF-8编码
decryptStr(String, Charset) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密Hex(16进制)或Base64表示的字符串
decryptStr(String) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密Hex(16进制)或Base64表示的字符串,默认UTF-8编码
decryptStr(InputStream, Charset) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密,不会关闭流
decryptStr(InputStream) - Method in interface cn.hutool.crypto.symmetric.SymmetricDecryptor
解密
decryptStrFromBcd(String, KeyType, Charset) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
Deprecated.
由于对于ASCII的编码解码有缺陷,且这种BCD实现并不规范,因此会在6.0.0中移除
decryptStrFromBcd(String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricDecryptor
Deprecated.
由于对于ASCII的编码解码有缺陷,且这种BCD实现并不规范,因此会在6.0.0中移除
DEFAULT_HASH_LENGTH - Static variable in class cn.hutool.crypto.digest.Argon2
默认hash长度
DEFAULT_KEY_SIZE - Static variable in class cn.hutool.crypto.KeyUtil
默认密钥字节数 RSA/DSA Default Keysize 1024 Keysize must be a multiple of 64, ranging from 512 to 1024 (inclusive).
DEFAULT_KEY_SIZE - Static variable in class cn.hutool.crypto.SecureUtil
默认密钥字节数 RSA/DSA Default Keysize 1024 Keysize must be a multiple of 64, ranging from 512 to 1024 (inclusive).
DEFAULT_PASSWORD_LENGTH - Static variable in class cn.hutool.crypto.digest.otp.HOTP
默认密码长度.
DEFAULT_TIME_STEP - Static variable in class cn.hutool.crypto.digest.otp.TOTP
默认步进 (30秒).
DefaultHMacEngine - Class in cn.hutool.crypto.digest.mac
默认的HMAC算法实现引擎,使用Mac 实现摘要
当引入BouncyCastle库时自动使用其作为Provider
DefaultHMacEngine(String, byte[]) - Constructor for class cn.hutool.crypto.digest.mac.DefaultHMacEngine
构造
DefaultHMacEngine(String, Key) - Constructor for class cn.hutool.crypto.digest.mac.DefaultHMacEngine
构造
DefaultHMacEngine(String, Key, AlgorithmParameterSpec) - Constructor for class cn.hutool.crypto.digest.mac.DefaultHMacEngine
构造
des() - Static method in class cn.hutool.crypto.SecureUtil
DES加密,生成随机KEY。
des(byte[]) - Static method in class cn.hutool.crypto.SecureUtil
DES加密
例: DES加密:des(key).encrypt(data) DES解密:des(key).decrypt(data)
DES - Class in cn.hutool.crypto.symmetric
DES加密算法实现
DES全称为Data Encryption Standard,即数据加密标准,是一种使用密钥加密的块算法
Java中默认实现为:DES/ECB/PKCS5Padding
DES() - Constructor for class cn.hutool.crypto.symmetric.DES
构造,默认DES/ECB/PKCS5Padding,使用随机密钥
DES(byte[]) - Constructor for class cn.hutool.crypto.symmetric.DES
构造,使用默认的DES/ECB/PKCS5Padding
DES(Mode, Padding) - Constructor for class cn.hutool.crypto.symmetric.DES
构造,使用随机密钥
DES(Mode, Padding, byte[]) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
DES(Mode, Padding, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
DES(Mode, Padding, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
DES(Mode, Padding, SecretKey, IvParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
DES(String, String) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
DES(String, String, byte[]) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
DES(String, String, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
DES(String, String, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
DES(String, String, SecretKey, IvParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.DES
构造
desede() - Static method in class cn.hutool.crypto.SecureUtil
DESede加密(又名3DES、TripleDES),生成随机KEY。
desede(byte[]) - Static method in class cn.hutool.crypto.SecureUtil
DESede加密(又名3DES、TripleDES)
Java中默认实现为:DESede/ECB/PKCS5Padding
例: DESede加密:desede(key).encrypt(data) DESede解密:desede(key).decrypt(data)
DESede - Class in cn.hutool.crypto.symmetric
DESede是由DES对称加密算法改进后的一种对称加密算法,又名3DES、TripleDES。
DESede() - Constructor for class cn.hutool.crypto.symmetric.DESede
构造,默认DESede/ECB/PKCS5Padding,使用随机密钥
DESede(byte[]) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造,使用默认的DESede/ECB/PKCS5Padding
DESede(Mode, Padding) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造,使用随机密钥
DESede(Mode, Padding, byte[]) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
DESede(Mode, Padding, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
DESede(Mode, Padding, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
DESede(Mode, Padding, SecretKey, IvParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
DESede(String, String) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
DESede(String, String, byte[]) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
DESede(String, String, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
DESede(String, String, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
DESede(String, String, SecretKey, IvParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.DESede
构造
digest(char[]) - Method in class cn.hutool.crypto.digest.Argon2
生成hash值
digest(String, String) - Method in class cn.hutool.crypto.digest.Digester
生成文件摘要
digest(String, Charset) - Method in class cn.hutool.crypto.digest.Digester
生成文件摘要
digest(String) - Method in class cn.hutool.crypto.digest.Digester
生成文件摘要
digest(File) - Method in class cn.hutool.crypto.digest.Digester
生成文件摘要
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digest(byte[]) - Method in class cn.hutool.crypto.digest.Digester
生成摘要,考虑加盐和重复摘要次数
digest(InputStream) - Method in class cn.hutool.crypto.digest.Digester
生成摘要,使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digest(InputStream, int) - Method in class cn.hutool.crypto.digest.Digester
生成摘要
digest(String, Charset) - Method in class cn.hutool.crypto.digest.mac.Mac
生成文件摘要
digest(String) - Method in class cn.hutool.crypto.digest.mac.Mac
生成文件摘要
digest(File) - Method in class cn.hutool.crypto.digest.mac.Mac
生成文件摘要
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digest(byte[]) - Method in class cn.hutool.crypto.digest.mac.Mac
生成摘要
digest(InputStream) - Method in class cn.hutool.crypto.digest.mac.Mac
生成摘要,使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digest(InputStream, int) - Method in class cn.hutool.crypto.digest.mac.Mac
生成摘要
digest(InputStream, int) - Method in interface cn.hutool.crypto.digest.mac.MacEngine
生成摘要
DigestAlgorithm - Enum in cn.hutool.crypto.digest
摘要算法类型
see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#MessageDigest
digestBase64(String, boolean) - Method in class cn.hutool.crypto.digest.mac.Mac
生成文件摘要,并转为Base64
digestBase64(String, Charset, boolean) - Method in class cn.hutool.crypto.digest.mac.Mac
生成文件摘要,并转为Base64
digestCount - Variable in class cn.hutool.crypto.digest.Digester
散列次数
Digester - Class in cn.hutool.crypto.digest
摘要算法
注意:此对象实例化后为非线程安全!
Digester(DigestAlgorithm) - Constructor for class cn.hutool.crypto.digest.Digester
构造
Digester(String) - Constructor for class cn.hutool.crypto.digest.Digester
构造
Digester(DigestAlgorithm, Provider) - Constructor for class cn.hutool.crypto.digest.Digester
构造
Digester(String, Provider) - Constructor for class cn.hutool.crypto.digest.Digester
构造
Digester(MessageDigest) - Constructor for class cn.hutool.crypto.digest.Digester
构造
digester(DigestAlgorithm) - Static method in class cn.hutool.crypto.digest.DigestUtil
新建摘要器
digester(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
新建摘要器
DigesterFactory - Class in cn.hutool.crypto.digest
Digester创建简单工厂,用于生产Digester对象
参考Guava方式,工厂负责持有一个原始的MessageDigest对象,使用时优先通过clone方式创建对象,提高初始化性能。
digestHex(InputStream, int) - Method in class cn.hutool.crypto.asymmetric.Sign
生成签名,并转为16进制字符串
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digestHex(String, String) - Method in class cn.hutool.crypto.digest.Digester
生成文件摘要,并转为16进制字符串
digestHex(String, Charset) - Method in class cn.hutool.crypto.digest.Digester
生成文件摘要,并转为16进制字符串
digestHex(String) - Method in class cn.hutool.crypto.digest.Digester
生成文件摘要
digestHex(File) - Method in class cn.hutool.crypto.digest.Digester
生成文件摘要,并转为16进制字符串
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digestHex(byte[]) - Method in class cn.hutool.crypto.digest.Digester
生成摘要,并转为16进制字符串
digestHex(InputStream) - Method in class cn.hutool.crypto.digest.Digester
生成摘要,并转为16进制字符串
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digestHex(InputStream, int) - Method in class cn.hutool.crypto.digest.Digester
生成摘要,并转为16进制字符串
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digestHex(String, Charset) - Method in class cn.hutool.crypto.digest.mac.Mac
生成文件摘要,并转为16进制字符串
digestHex(String) - Method in class cn.hutool.crypto.digest.mac.Mac
生成文件摘要
digestHex(File) - Method in class cn.hutool.crypto.digest.mac.Mac
生成文件摘要,并转为16进制字符串
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digestHex(byte[]) - Method in class cn.hutool.crypto.digest.mac.Mac
生成摘要,并转为16进制字符串
digestHex(InputStream) - Method in class cn.hutool.crypto.digest.mac.Mac
生成摘要,并转为16进制字符串
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digestHex(InputStream, int) - Method in class cn.hutool.crypto.digest.mac.Mac
生成摘要,并转为16进制字符串
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
digestHex16(String, Charset) - Method in class cn.hutool.crypto.digest.MD5
生成16位MD5摘要
digestHex16(String) - Method in class cn.hutool.crypto.digest.MD5
生成16位MD5摘要
digestHex16(InputStream) - Method in class cn.hutool.crypto.digest.MD5
生成16位MD5摘要
digestHex16(File) - Method in class cn.hutool.crypto.digest.MD5
生成16位MD5摘要
digestHex16(byte[]) - Method in class cn.hutool.crypto.digest.MD5
生成16位MD5摘要
DigestUtil - Class in cn.hutool.crypto.digest
摘要算法工具类
DigestUtil() - Constructor for class cn.hutool.crypto.digest.DigestUtil
 
disableBouncyCastle() - Static method in class cn.hutool.crypto.SecureUtil
强制关闭Bouncy Castle库的使用,全局有效
doFinal() - Method in class cn.hutool.crypto.digest.mac.BCMacEngine
 
doFinal() - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
 
doFinal() - Method in interface cn.hutool.crypto.digest.mac.MacEngine
结束并生成摘要

E

ECIES - Class in cn.hutool.crypto.asymmetric
ECIES(集成加密方案,elliptic curve integrate encrypt scheme) 详细介绍见:https://blog.csdn.net/baidu_26954729/article/details/90437344 此算法必须引入Bouncy Castle库
ECIES() - Constructor for class cn.hutool.crypto.asymmetric.ECIES
构造,生成新的私钥公钥对
ECIES(String) - Constructor for class cn.hutool.crypto.asymmetric.ECIES
构造,生成新的私钥公钥对
ECIES(String, String) - Constructor for class cn.hutool.crypto.asymmetric.ECIES
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
ECIES(String, String, String) - Constructor for class cn.hutool.crypto.asymmetric.ECIES
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
ECIES(byte[], byte[]) - Constructor for class cn.hutool.crypto.asymmetric.ECIES
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
ECIES(PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.ECIES
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
ECIES(String, PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.ECIES
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
ECKeyUtil - Class in cn.hutool.crypto
EC密钥参数相关工具类封装
ECKeyUtil() - Constructor for class cn.hutool.crypto.ECKeyUtil
 
encode(String, ASN1Encodable...) - Static method in class cn.hutool.crypto.ASN1Util
编码为指定ASN1格式
encodeDer(ASN1Encodable...) - Static method in class cn.hutool.crypto.ASN1Util
编码为DER格式
encodeECPrivateKey(PrivateKey) - Static method in class cn.hutool.crypto.BCUtil
只获取私钥里的d,32字节
encodeECPublicKey(PublicKey) - Static method in class cn.hutool.crypto.BCUtil
编码压缩EC公钥(基于BouncyCastle),即Q值
见:https://www.cnblogs.com/xinzhao/p/8963724.html
encodeECPublicKey(PublicKey, boolean) - Static method in class cn.hutool.crypto.BCUtil
编码压缩EC公钥(基于BouncyCastle),即Q值
见:https://www.cnblogs.com/xinzhao/p/8963724.html
encodeECPublicKey(PublicKey) - Static method in class cn.hutool.crypto.KeyUtil
编码压缩EC公钥(基于BouncyCastle)
见:https://www.cnblogs.com/xinzhao/p/8963724.html
encodeTo(String, OutputStream, ASN1Encodable...) - Static method in class cn.hutool.crypto.ASN1Util
编码为指定ASN1格式
encrypt(byte[], KeyType) - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
 
encrypt(byte[], KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
加密
encrypt(String, String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
加密
encrypt(String, Charset, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
加密
encrypt(String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
加密,使用UTF-8编码
encrypt(InputStream, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
加密
encrypt(byte[], KeyType) - Method in class cn.hutool.crypto.asymmetric.RSA
 
encrypt(byte[]) - Method in class cn.hutool.crypto.asymmetric.SM2
使用公钥加密,SM2非对称加密的结果由C1,C3,C2三部分组成,其中: C1 生成随机数的计算出的椭圆曲线点 C3 SM3的摘要值 C2 密文数据
encrypt(byte[], KeyType) - Method in class cn.hutool.crypto.asymmetric.SM2
加密,SM2非对称加密的结果由C1,C3,C2三部分组成,其中: C1 生成随机数的计算出的椭圆曲线点 C3 SM3的摘要值 C2 密文数据
encrypt(byte[], CipherParameters) - Method in class cn.hutool.crypto.asymmetric.SM2
加密,SM2非对称加密的结果由C1,C2,C3三部分组成,其中: C1 生成随机数的计算出的椭圆曲线点 C2 密文数据 C3 SM3的摘要值
encrypt(String) - Method in class cn.hutool.crypto.symmetric.fpe.FPE
加密
encrypt(char[]) - Method in class cn.hutool.crypto.symmetric.fpe.FPE
加密
encrypt(char[], byte[]) - Method in class cn.hutool.crypto.symmetric.PBKDF2
加密
encrypt(String, Charset) - Method in class cn.hutool.crypto.symmetric.RC4
加密
encrypt(String) - Method in class cn.hutool.crypto.symmetric.RC4
加密,使用默认编码:UTF-8
encrypt(byte[]) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
 
encrypt(InputStream, OutputStream, boolean) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
 
encrypt(byte[]) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encrypt(InputStream, OutputStream, boolean) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密,针对大数据量,可选结束后是否关闭流
encrypt(String, String) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encrypt(String, Charset) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encrypt(String) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密,使用UTF-8编码
encrypt(InputStream) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密,加密后关闭流
encrypt(CharSequence, CharSequence) - Static method in class cn.hutool.crypto.symmetric.Vigenere
加密
encrypt(byte[]) - Method in class cn.hutool.crypto.symmetric.XXTEA
 
encrypt(InputStream, OutputStream, boolean) - Method in class cn.hutool.crypto.symmetric.XXTEA
 
encryptBase64(byte[], KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
编码为Base64字符串
encryptBase64(String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
编码为Base64字符串,使用UTF-8编码
encryptBase64(String, Charset, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
编码为Base64字符串
encryptBase64(InputStream, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
编码为Base64字符串
encryptBase64(byte[]) - Method in class cn.hutool.crypto.symmetric.RC4
加密
encryptBase64(String, Charset) - Method in class cn.hutool.crypto.symmetric.RC4
加密
encryptBase64(String) - Method in class cn.hutool.crypto.symmetric.RC4
加密,使用UTF-8编码
encryptBase64(byte[]) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encryptBase64(String, String) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encryptBase64(String, Charset) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encryptBase64(String) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密,使用UTF-8编码
encryptBase64(InputStream) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encryptBcd(String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
Deprecated.
由于对于ASCII的编码解码有缺陷,且这种BCD实现并不规范,因此会在6.0.0中移除
encryptBcd(String, KeyType, Charset) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
Deprecated.
由于对于ASCII的编码解码有缺陷,且这种BCD实现并不规范,因此会在6.0.0中移除
encryptBlockSize - Variable in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
加密的块大小
encryptHex(byte[], KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
编码为Hex字符串
encryptHex(String, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
编码为Hex字符串
encryptHex(String, Charset, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
编码为Hex字符串
encryptHex(InputStream, KeyType) - Method in interface cn.hutool.crypto.asymmetric.AsymmetricEncryptor
编码为Hex字符串
encryptHex(char[], byte[]) - Method in class cn.hutool.crypto.symmetric.PBKDF2
加密
encryptHex(byte[]) - Method in class cn.hutool.crypto.symmetric.RC4
加密
encryptHex(String, Charset) - Method in class cn.hutool.crypto.symmetric.RC4
加密
encryptHex(String) - Method in class cn.hutool.crypto.symmetric.RC4
加密,使用UTF-8编码
encryptHex(byte[]) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encryptHex(String, String) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encryptHex(String, Charset) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
encryptHex(String) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密,使用UTF-8编码
encryptHex(InputStream) - Method in interface cn.hutool.crypto.symmetric.SymmetricEncryptor
加密
engine - Variable in class cn.hutool.crypto.asymmetric.SM2
 

F

fpe(FPE.FPEMode, byte[], AlphabetMapper, byte[]) - Static method in class cn.hutool.crypto.SecureUtil
FPE(Format Preserving Encryption)实现,支持FF1和FF3-1模式。
FPE - Class in cn.hutool.crypto.symmetric.fpe
FPE(Format Preserving Encryption)实现,支持FF1和FF3-1模式。
FPE(FPE.FPEMode, byte[], AlphabetMapper) - Constructor for class cn.hutool.crypto.symmetric.fpe.FPE
构造,使用空的Tweak
FPE(FPE.FPEMode, byte[], AlphabetMapper, byte[]) - Constructor for class cn.hutool.crypto.symmetric.fpe.FPE
构造
FPE.FPEMode - Enum in cn.hutool.crypto.symmetric.fpe
FPE模式
FPE包括两种模式:FF1和FF3(FF2弃用),核心均为Feistel网络结构。

G

generate(long) - Method in class cn.hutool.crypto.digest.otp.HOTP
生成一次性密码
generate(Instant) - Method in class cn.hutool.crypto.digest.otp.TOTP
使用给定的时间戳生成一次性密码.
generateAlgorithm(AsymmetricAlgorithm, DigestAlgorithm) - Static method in class cn.hutool.crypto.SecureUtil
生成算法,格式为XXXwithXXX
generateDESKey(String, byte[]) - Static method in class cn.hutool.crypto.KeyUtil
生成 SecretKey
generateDESKey(String, byte[]) - Static method in class cn.hutool.crypto.SecureUtil
生成 SecretKey
generateGoogleSecretKey(String, int) - Static method in class cn.hutool.crypto.digest.otp.TOTP
生成谷歌认证器的字符串(扫码字符串) 基于时间的,计数器不适合
generateKey(String) - Static method in class cn.hutool.crypto.KeyUtil
生成 SecretKey,仅用于对称加密和摘要算法密钥生成
generateKey(String, int) - Static method in class cn.hutool.crypto.KeyUtil
生成 SecretKey,仅用于对称加密和摘要算法密钥生成
当指定keySize<0时,AES默认长度为128,其它算法不指定。
generateKey(String, int, SecureRandom) - Static method in class cn.hutool.crypto.KeyUtil
生成 SecretKey,仅用于对称加密和摘要算法密钥生成
当指定keySize<0时,AES默认长度为128,其它算法不指定。
generateKey(String, byte[]) - Static method in class cn.hutool.crypto.KeyUtil
生成 SecretKey,仅用于对称加密和摘要算法密钥生成
generateKey(String, KeySpec) - Static method in class cn.hutool.crypto.KeyUtil
生成 SecretKey,仅用于对称加密和摘要算法
generateKey(String) - Static method in class cn.hutool.crypto.SecureUtil
生成 SecretKey,仅用于对称加密和摘要算法密钥生成
generateKey(String, int) - Static method in class cn.hutool.crypto.SecureUtil
生成 SecretKey,仅用于对称加密和摘要算法密钥生成
generateKey(String, byte[]) - Static method in class cn.hutool.crypto.SecureUtil
生成 SecretKey,仅用于对称加密和摘要算法密钥生成
generateKey(String, KeySpec) - Static method in class cn.hutool.crypto.SecureUtil
生成 SecretKey,仅用于对称加密和摘要算法
generateKey(ZUC.ZUCAlgorithm) - Static method in class cn.hutool.crypto.symmetric.ZUC
生成ZUC算法密钥
generateKeyPair(String) - Static method in class cn.hutool.crypto.KeyUtil
生成用于非对称加密的公钥和私钥,仅用于非对称加密
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, int) - Static method in class cn.hutool.crypto.KeyUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, int, byte[]) - Static method in class cn.hutool.crypto.KeyUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, AlgorithmParameterSpec) - Static method in class cn.hutool.crypto.KeyUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, byte[], AlgorithmParameterSpec) - Static method in class cn.hutool.crypto.KeyUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, int, byte[], AlgorithmParameterSpec...) - Static method in class cn.hutool.crypto.KeyUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator 对于非对称加密算法,密钥长度有严格限制,具体如下: RSA: RS256、PS256:2048 bits RS384、PS384:3072 bits RS512、RS512:4096 bits EC(Elliptic Curve): EC256:256 bits EC384:384 bits EC512:512 bits
generateKeyPair(String, int, SecureRandom, AlgorithmParameterSpec...) - Static method in class cn.hutool.crypto.KeyUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator 对于非对称加密算法,密钥长度有严格限制,具体如下: RSA: RS256、PS256:2048 bits RS384、PS384:3072 bits RS512、RS512:4096 bits EC(Elliptic Curve): EC256:256 bits EC384:384 bits EC512:512 bits
generateKeyPair(String) - Static method in class cn.hutool.crypto.SecureUtil
生成用于非对称加密的公钥和私钥,仅用于非对称加密
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, int) - Static method in class cn.hutool.crypto.SecureUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, int, byte[]) - Static method in class cn.hutool.crypto.SecureUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, AlgorithmParameterSpec) - Static method in class cn.hutool.crypto.SecureUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generateKeyPair(String, byte[], AlgorithmParameterSpec) - Static method in class cn.hutool.crypto.SecureUtil
生成用于非对称加密的公钥和私钥
密钥对生成算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyPairGenerator
generatePBEKey(String, char[]) - Static method in class cn.hutool.crypto.KeyUtil
生成PBE SecretKey
generatePBEKey(String, char[]) - Static method in class cn.hutool.crypto.SecureUtil
生成PBE SecretKey
generatePrivateKey(BigInteger, BigInteger) - Static method in class cn.hutool.crypto.asymmetric.RSA
生成RSA私钥
generatePrivateKey(String, byte[]) - Static method in class cn.hutool.crypto.KeyUtil
生成私钥,仅用于非对称加密
采用PKCS#8规范,此规范定义了私钥信息语法和加密私钥语法
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generatePrivateKey(String, KeySpec) - Static method in class cn.hutool.crypto.KeyUtil
生成私钥,仅用于非对称加密
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generatePrivateKey(KeyStore, String, char[]) - Static method in class cn.hutool.crypto.KeyUtil
生成私钥,仅用于非对称加密
generatePrivateKey(String, byte[]) - Static method in class cn.hutool.crypto.SecureUtil
生成私钥,仅用于非对称加密
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generatePrivateKey(String, KeySpec) - Static method in class cn.hutool.crypto.SecureUtil
生成私钥,仅用于非对称加密
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generatePrivateKey(KeyStore, String, char[]) - Static method in class cn.hutool.crypto.SecureUtil
生成私钥,仅用于非对称加密
generatePublicKey(BigInteger, BigInteger) - Static method in class cn.hutool.crypto.asymmetric.RSA
生成RSA公钥
generatePublicKey(String, byte[]) - Static method in class cn.hutool.crypto.KeyUtil
生成公钥,仅用于非对称加密
采用X509证书规范
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generatePublicKey(String, KeySpec) - Static method in class cn.hutool.crypto.KeyUtil
生成公钥,仅用于非对称加密
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generatePublicKey(String, byte[]) - Static method in class cn.hutool.crypto.SecureUtil
生成公钥,仅用于非对称加密
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generatePublicKey(String, KeySpec) - Static method in class cn.hutool.crypto.SecureUtil
生成公钥,仅用于非对称加密
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generateRSAPrivateKey(byte[]) - Static method in class cn.hutool.crypto.KeyUtil
生成RSA私钥,仅用于非对称加密
采用PKCS#8规范,此规范定义了私钥信息语法和加密私钥语法
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generateRSAPublicKey(byte[]) - Static method in class cn.hutool.crypto.KeyUtil
生成RSA公钥,仅用于非对称加密
采用X509证书规范
算法见:https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyFactory
generateSecretKey(int) - Static method in class cn.hutool.crypto.digest.otp.HOTP
生成共享密钥的Base32表示形式
generateSignature(AsymmetricAlgorithm, DigestAlgorithm) - Static method in class cn.hutool.crypto.SecureUtil
生成签名对象,仅用于非对称加密
gensalt(int, SecureRandom) - Static method in class cn.hutool.crypto.digest.BCrypt
生成盐
gensalt(int) - Static method in class cn.hutool.crypto.digest.BCrypt
生成盐
gensalt() - Static method in class cn.hutool.crypto.digest.BCrypt
生成盐
getAlgorithm() - Method in class cn.hutool.crypto.digest.mac.BCMacEngine
 
getAlgorithm() - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
 
getAlgorithm() - Method in class cn.hutool.crypto.digest.mac.Mac
获取算法
getAlgorithm() - Method in interface cn.hutool.crypto.digest.mac.MacEngine
获取当前算法
getAlgorithm() - Method in class cn.hutool.crypto.digest.otp.HOTP
获取HMAC算法
getAlgorithmAfterWith(String) - Static method in class cn.hutool.crypto.KeyUtil
获取用于密钥生成的算法
获取XXXwithXXX算法的后半部分算法,如果为ECDSA或SM2,返回算法为EC
getAlgorithmAfterWith(String) - Static method in class cn.hutool.crypto.SecureUtil
获取用于密钥生成的算法
获取XXXwithXXX算法的后半部分算法,如果为ECDSA或SM2,返回算法为EC
getAlgorithmParameterSpec() - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
获取AlgorithmParameterSpec
在某些算法中,需要特别的参数,例如在ECIES中,此处为IESParameterSpec
getCertificate(KeyStore, String) - Static method in class cn.hutool.crypto.KeyUtil
获得 Certification
getCertificate(KeyStore, String) - Static method in class cn.hutool.crypto.SecureUtil
获得 Certification
getCertificateFactory(String) - Static method in class cn.hutool.crypto.KeyUtil
getCipher() - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
获得加密或解密器
getCipher() - Method in class cn.hutool.crypto.CipherWrapper
获取被包装的Cipher
getCipher() - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
获得加密或解密器
getD() - Method in class cn.hutool.crypto.asymmetric.SM2
获得私钥D值(编码后的私钥)
getDBigInteger() - Method in class cn.hutool.crypto.asymmetric.SM2
获得私钥D值
getDecryptBlockSize() - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
获取解密块大小
getDHex() - Method in class cn.hutool.crypto.asymmetric.SM2
获得私钥D值(编码后的私钥)
getDigest() - Method in class cn.hutool.crypto.digest.Digester
getDigestLength() - Method in class cn.hutool.crypto.digest.Digester
获取散列长度,0表示不支持此方法
getDumpStr(InputStream) - Static method in class cn.hutool.crypto.ASN1Util
获取ASN1格式的导出格式,一般用于调试
getEncryptBlockSize() - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
获取加密块大小
getEngine() - Method in class cn.hutool.crypto.digest.mac.Mac
获得MAC算法引擎
getKeyByType(KeyType) - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
根据密钥类型获得相应密钥
getKeyFactory(String) - Static method in class cn.hutool.crypto.KeyUtil
getKeyGenerator(String) - Static method in class cn.hutool.crypto.KeyUtil
getKeyPair(String, InputStream, char[], String) - Static method in class cn.hutool.crypto.KeyUtil
从KeyStore中获取私钥公钥
getKeyPair(KeyStore, char[], String) - Static method in class cn.hutool.crypto.KeyUtil
从KeyStore中获取私钥公钥
getKeyPair(PEMKeyPair) - Static method in class cn.hutool.crypto.OpensslKeyUtil
转换PEMKeyPairKeyPair
getKeyPairGenerator(String) - Static method in class cn.hutool.crypto.KeyUtil
getKeyStore(String) - Static method in class cn.hutool.crypto.KeyUtil
获取KeyStore对象
getMac() - Method in class cn.hutool.crypto.digest.mac.BCMacEngine
获得 Mac
getMac() - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
获得 Mac
getMacLength() - Method in class cn.hutool.crypto.digest.mac.BCMacEngine
 
getMacLength() - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
 
getMacLength() - Method in class cn.hutool.crypto.digest.mac.Mac
获取MAC算法块长度
getMacLength() - Method in interface cn.hutool.crypto.digest.mac.MacEngine
获取MAC算法块大小
getMainAlgorithm(String) - Static method in class cn.hutool.crypto.KeyUtil
获取主体算法名,例如RSA/ECB/PKCS1Padding的主体算法是RSA
getParams() - Method in class cn.hutool.crypto.CipherWrapper
获取AlgorithmParameterSpec
在某些算法中,需要特别的参数,例如在ECIES中,此处为IESParameterSpec
getPasswordLength() - Method in class cn.hutool.crypto.digest.otp.HOTP
获取密码长度,可以是6,7,8
getPrivateKey() - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
获得私钥
getPrivateKey(PrivateKeyInfo) - Static method in class cn.hutool.crypto.OpensslKeyUtil
转换PrivateKeyInfoPrivateKey
getPrivateKeyBase64() - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
获得私钥
getProvider() - Method in enum cn.hutool.crypto.GlobalBouncyCastleProvider
获取Provider
getPublicKey() - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
获得公钥
getPublicKey(SubjectPublicKeyInfo) - Static method in class cn.hutool.crypto.OpensslKeyUtil
转换SubjectPublicKeyInfoPublicKey
getPublicKeyBase64() - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
获得公钥
getPublicParams(ECPrivateKeyParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
根据私钥参数获取公钥参数
getQ(boolean) - Method in class cn.hutool.crypto.asymmetric.SM2
获得公钥Q值(编码后的公钥)
getRSAPublicKey(PrivateKey) - Static method in class cn.hutool.crypto.KeyUtil
通过RSA私钥生成RSA公钥
getRSAPublicKey(String, String) - Static method in class cn.hutool.crypto.KeyUtil
获得RSA公钥对象
getRSAPublicKey(BigInteger, BigInteger) - Static method in class cn.hutool.crypto.KeyUtil
获得RSA公钥对象
getSecretKey() - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
获得对称密钥
getSecretKeyFactory(String) - Static method in class cn.hutool.crypto.KeyUtil
getSignature() - Method in class cn.hutool.crypto.asymmetric.Sign
获得签名对象
getTimeStep() - Method in class cn.hutool.crypto.digest.otp.TOTP
获取步进
getValue() - Method in enum cn.hutool.crypto.asymmetric.AsymmetricAlgorithm
获取算法字符串表示,区分大小写
getValue() - Method in enum cn.hutool.crypto.asymmetric.KeyType
获取枚举值对应的int表示
getValue() - Method in enum cn.hutool.crypto.asymmetric.SignAlgorithm
获取算法字符串表示,区分大小写
getValue() - Method in enum cn.hutool.crypto.CipherMode
获取枚举值对应的int表示
getValue() - Method in enum cn.hutool.crypto.digest.DigestAlgorithm
获取算法字符串表示
getValue() - Method in enum cn.hutool.crypto.digest.HmacAlgorithm
 
getValue() - Method in enum cn.hutool.crypto.symmetric.fpe.FPE.FPEMode
获取模式名
getValue() - Method in enum cn.hutool.crypto.symmetric.SymmetricAlgorithm
获得算法的字符串表示形式
getValue() - Method in enum cn.hutool.crypto.symmetric.ZUC.ZUCAlgorithm
获得算法的字符串表示形式
GlobalBouncyCastleProvider - Enum in cn.hutool.crypto
全局单例的 org.bouncycastle.jce.provider.BouncyCastleProvider 对象

H

hashpw(String) - Static method in class cn.hutool.crypto.digest.BCrypt
生成密文,使用长度为10的加盐方式
hashpw(String, String) - Static method in class cn.hutool.crypto.digest.BCrypt
生成密文
hmac(HmacAlgorithm, byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
创建HMac对象,调用digest方法可获得hmac值
hmac(HmacAlgorithm, SecretKey) - Static method in class cn.hutool.crypto.digest.DigestUtil
创建HMac对象,调用digest方法可获得hmac值
HMac - Class in cn.hutool.crypto.digest
HMAC摘要算法
HMAC,全称为“Hash Message Authentication Code”,中文名“散列消息鉴别码”
主要是利用哈希算法,以一个密钥和一个消息为输入,生成一个消息摘要作为输出。
HMac(HmacAlgorithm) - Constructor for class cn.hutool.crypto.digest.HMac
构造,自动生成密钥
HMac(HmacAlgorithm, byte[]) - Constructor for class cn.hutool.crypto.digest.HMac
构造
HMac(HmacAlgorithm, Key) - Constructor for class cn.hutool.crypto.digest.HMac
构造
HMac(String, byte[]) - Constructor for class cn.hutool.crypto.digest.HMac
构造
HMac(String, Key) - Constructor for class cn.hutool.crypto.digest.HMac
构造
HMac(String, Key, AlgorithmParameterSpec) - Constructor for class cn.hutool.crypto.digest.HMac
构造
HMac(MacEngine) - Constructor for class cn.hutool.crypto.digest.HMac
构造
hmac(HmacAlgorithm, String) - Static method in class cn.hutool.crypto.SecureUtil
创建HMac对象,调用digest方法可获得hmac值
hmac(HmacAlgorithm, byte[]) - Static method in class cn.hutool.crypto.SecureUtil
创建HMac对象,调用digest方法可获得hmac值
hmac(HmacAlgorithm, SecretKey) - Static method in class cn.hutool.crypto.SecureUtil
创建HMac对象,调用digest方法可获得hmac值
HmacAlgorithm - Enum in cn.hutool.crypto.digest
HMAC算法类型
see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Mac
hmacMd5(String) - Static method in class cn.hutool.crypto.SecureUtil
HmacMD5加密器
例:
HmacMD5加密:hmacMd5(key).digest(data)
HmacMD5加密并转为16进制字符串:hmacMd5(key).digestHex(data)
hmacMd5(byte[]) - Static method in class cn.hutool.crypto.SecureUtil
HmacMD5加密器
例:
HmacMD5加密:hmacMd5(key).digest(data)
HmacMD5加密并转为16进制字符串:hmacMd5(key).digestHex(data)
hmacMd5() - Static method in class cn.hutool.crypto.SecureUtil
HmacMD5加密器,生成随机KEY
例:
HmacMD5加密:hmacMd5().digest(data)
HmacMD5加密并转为16进制字符串:hmacMd5().digestHex(data)
hmacSha1(String) - Static method in class cn.hutool.crypto.SecureUtil
HmacSHA1加密器
例:
HmacSHA1加密:hmacSha1(key).digest(data)
HmacSHA1加密并转为16进制字符串:hmacSha1(key).digestHex(data)
hmacSha1(byte[]) - Static method in class cn.hutool.crypto.SecureUtil
HmacSHA1加密器
例:
HmacSHA1加密:hmacSha1(key).digest(data)
HmacSHA1加密并转为16进制字符串:hmacSha1(key).digestHex(data)
hmacSha1() - Static method in class cn.hutool.crypto.SecureUtil
HmacSHA1加密器,生成随机KEY
例:
HmacSHA1加密:hmacSha1().digest(data)
HmacSHA1加密并转为16进制字符串:hmacSha1().digestHex(data)
hmacSha256(String) - Static method in class cn.hutool.crypto.SecureUtil
HmacSHA256加密器
例:
HmacSHA256加密:hmacSha256(key).digest(data)
HmacSHA256加密并转为16进制字符串:hmacSha256(key).digestHex(data)
hmacSha256(byte[]) - Static method in class cn.hutool.crypto.SecureUtil
HmacSHA256加密器
例:
HmacSHA256加密:hmacSha256(key).digest(data)
HmacSHA256加密并转为16进制字符串:hmacSha256(key).digestHex(data)
hmacSha256() - Static method in class cn.hutool.crypto.SecureUtil
HmacSHA256加密器,生成随机KEY
例:
HmacSHA256加密:hmacSha256().digest(data)
HmacSHA256加密并转为16进制字符串:hmacSha256().digestHex(data)
hmacSm3(byte[]) - Static method in class cn.hutool.crypto.SmUtil
HmacSM3算法实现
HOTP - Class in cn.hutool.crypto.digest.otp
HMAC-based one-time passwords (HOTP) 基于HMAC算法一次性密码生成器, 规范见:RFC 4226.
HOTP(byte[]) - Constructor for class cn.hutool.crypto.digest.otp.HOTP
构造,使用默认密码长度和默认HMAC算法(HmacSHA1)
HOTP(int, byte[]) - Constructor for class cn.hutool.crypto.digest.otp.HOTP
构造,使用默认HMAC算法(HmacSHA1)
HOTP(int, HmacAlgorithm, byte[]) - Constructor for class cn.hutool.crypto.digest.otp.HOTP
构造
HOTP_HMAC_ALGORITHM - Static variable in class cn.hutool.crypto.digest.otp.HOTP
默认HMAC算法.
HUTOOL_CRYPTO_DECODE_HEX - Static variable in class cn.hutool.crypto.SecureUtil
Hutool自定义系统属性:是否解码Hex字符 issue#I90M9D

I

ID_SM2_PUBLIC_KEY_PARAM - Static variable in class cn.hutool.crypto.SmUtil
SM2国密算法公钥参数的Oid标识
init(String, PrivateKey, PublicKey) - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
 
init(String, PrivateKey, PublicKey) - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
初始化
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密(签名)或者解密(校验)
init(String, PrivateKey, PublicKey) - Method in class cn.hutool.crypto.asymmetric.Sign
初始化
init() - Method in class cn.hutool.crypto.asymmetric.SM2
初始化
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密(签名)或者解密(校验)
init(String, Provider) - Method in class cn.hutool.crypto.digest.Digester
初始化
init(Digest, CipherParameters) - Method in class cn.hutool.crypto.digest.mac.BCHMacEngine
初始化
init(Mac, CipherParameters) - Method in class cn.hutool.crypto.digest.mac.BCMacEngine
初始化
init(BlockCipher, CipherParameters) - Method in class cn.hutool.crypto.digest.mac.CBCBlockCipherMacEngine
初始化
init(String, byte[]) - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
初始化
init(String, Key) - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
初始化
init(String, Key, AlgorithmParameterSpec) - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
初始化
init(String, SecretKey) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
初始化
initCipher() - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
初始化Cipher,默认尝试加载BC库
initCipher() - Method in class cn.hutool.crypto.asymmetric.RSA
 
initKeys() - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
生成公钥和私钥
initKeys() - Method in class cn.hutool.crypto.asymmetric.SM2
 
initMode(int, Key) - Method in class cn.hutool.crypto.CipherWrapper
初始化Cipher为加密或者解密模式

K

KEY_TYPE_JCEKS - Static variable in class cn.hutool.crypto.KeyUtil
jceks
KEY_TYPE_JKS - Static variable in class cn.hutool.crypto.KeyUtil
Java密钥库(Java Key Store,JKS)KEY_STORE
KEY_TYPE_PKCS12 - Static variable in class cn.hutool.crypto.KeyUtil
PKCS12是公钥加密标准,它规定了可包含所有私钥、公钥和证书。
KeyType - Enum in cn.hutool.crypto.asymmetric
密钥类型
KeyUtil - Class in cn.hutool.crypto
密钥工具类 包括: 1、生成密钥(单密钥、密钥对) 2、读取密钥文件
KeyUtil() - Constructor for class cn.hutool.crypto.KeyUtil
 

L

lock - Variable in class cn.hutool.crypto.asymmetric.BaseAsymmetric

M

Mac - Class in cn.hutool.crypto.digest.mac
MAC摘要算法(此类兼容和JCE的 javax.crypto.Mac对象和BC库的org.bouncycastle.crypto.Mac对象)
MAC,全称为“Message Authentication Code”,中文名“消息鉴别码”
主要是利用指定算法,以一个密钥和一个消息为输入,生成一个消息摘要作为输出。
Mac(MacEngine) - Constructor for class cn.hutool.crypto.digest.mac.Mac
构造
MacEngine - Interface in cn.hutool.crypto.digest.mac
MAC(Message Authentication Code)算法引擎
MacEngineFactory - Class in cn.hutool.crypto.digest.mac
MacEngine 实现工厂类
MacEngineFactory() - Constructor for class cn.hutool.crypto.digest.mac.MacEngineFactory
 
md5(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值
md5(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值
md5(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值,使用UTF-8编码
md5(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值
md5(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值
MD5 - Class in cn.hutool.crypto.digest
MD5算法
MD5() - Constructor for class cn.hutool.crypto.digest.MD5
构造
MD5(byte[]) - Constructor for class cn.hutool.crypto.digest.MD5
构造
MD5(byte[], int) - Constructor for class cn.hutool.crypto.digest.MD5
构造
MD5(byte[], int, int) - Constructor for class cn.hutool.crypto.digest.MD5
构造
md5() - Static method in class cn.hutool.crypto.SecureUtil
MD5加密
例: MD5加密:md5().digest(data) MD5加密并转为16进制字符串:md5().digestHex(data)
md5(String) - Static method in class cn.hutool.crypto.SecureUtil
MD5加密,生成16进制MD5字符串
md5(InputStream) - Static method in class cn.hutool.crypto.SecureUtil
MD5加密,生成16进制MD5字符串
md5(File) - Static method in class cn.hutool.crypto.SecureUtil
MD5加密文件,生成16进制MD5字符串
md5Hex(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值,并转为16进制字符串
md5Hex(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值,并转为16进制字符串
md5Hex(String, Charset) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值,并转为16进制字符串
md5Hex(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值,并转为16进制字符串
md5Hex(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值,并转为16进制字符串
md5Hex(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算32位MD5摘要值,并转为16进制字符串
md5Hex16(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算16位MD5摘要值,并转为16进制字符串
md5Hex16(String, Charset) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算16位MD5摘要值,并转为16进制字符串
md5Hex16(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算16位MD5摘要值,并转为16进制字符串
md5Hex16(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算16位MD5摘要值,并转为16进制字符串
md5Hex16(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算16位MD5摘要值,并转为16进制字符串
md5HexTo16(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
32位MD5转16位MD5
Mode - Enum in cn.hutool.crypto
模式 加密算法模式,是用来描述加密算法(此处特指分组密码,不包括流密码,)在加密时对明文分组的模式,它代表了不同的分组方式

O

of(String) - Static method in class cn.hutool.crypto.digest.DigesterFactory
创建工厂,使用GlobalBouncyCastleProvider找到的提供方。
of(MessageDigest) - Static method in class cn.hutool.crypto.digest.DigesterFactory
创建工厂
ofJdk(String) - Static method in class cn.hutool.crypto.digest.DigesterFactory
创建工厂
OpensslKeyUtil - Class in cn.hutool.crypto
基于bcpkix封装的Openssl相关工具,包括密钥转换、Pem密钥文件读取等
注意此工具需要引入org.bouncycastle:bcpkix-jdk15to18
OpensslKeyUtil() - Constructor for class cn.hutool.crypto.OpensslKeyUtil
 

P

Padding - Enum in cn.hutool.crypto
补码方式 补码方式是在分组密码中,当明文长度不是分组长度的整数倍时,需要在最后一个分组中填充一些数据使其凑满一个分组的长度。
pbkdf2(char[], byte[]) - Static method in class cn.hutool.crypto.SecureUtil
PBKDF2加密密码
PBKDF2 - Class in cn.hutool.crypto.symmetric
PBKDF2应用一个伪随机函数以导出密钥,PBKDF2简单而言就是将salted hash进行多次重复计算。
PBKDF2() - Constructor for class cn.hutool.crypto.symmetric.PBKDF2
构造,算法PBKDF2WithHmacSHA1,盐长度16,密文长度512,迭代次数1000
PBKDF2(String, int, int) - Constructor for class cn.hutool.crypto.symmetric.PBKDF2
构造
PemUtil - Class in cn.hutool.crypto
PEM(Privacy Enhanced Mail)格式相关工具类。
PemUtil() - Constructor for class cn.hutool.crypto.PemUtil
 
privateKey - Variable in class cn.hutool.crypto.asymmetric.BaseAsymmetric
私钥
ProviderFactory - Class in cn.hutool.crypto
Provider对象生产工厂类 1.
publicKey - Variable in class cn.hutool.crypto.asymmetric.BaseAsymmetric
公钥

R

rc4(String) - Static method in class cn.hutool.crypto.SecureUtil
RC4算法
RC4 - Class in cn.hutool.crypto.symmetric
RC4加密解密算法实现
注意:由于安全问题,已经基本不在HTTPS中使用了
来自:https://github.com/xSAVIKx/RC4-cipher/blob/master/src/main/java/com/github/xsavikx/rc4/RC4.java
RC4(String) - Constructor for class cn.hutool.crypto.symmetric.RC4
构造
readCertificate(String, InputStream, char[], String) - Static method in class cn.hutool.crypto.KeyUtil
读取Certification文件
Certification为证书文件
see: http://snowolf.iteye.com/blog/391931
readCertificate(String, InputStream) - Static method in class cn.hutool.crypto.KeyUtil
读取Certification文件
Certification为证书文件
see: http://snowolf.iteye.com/blog/391931
readCertificate(String, InputStream, char[], String) - Static method in class cn.hutool.crypto.SecureUtil
读取Certification文件
Certification为证书文件
see: http://snowolf.iteye.com/blog/391931
readCertificate(String, InputStream) - Static method in class cn.hutool.crypto.SecureUtil
读取Certification文件
Certification为证书文件
see: http://snowolf.iteye.com/blog/391931
readJKSKeyStore(File, char[]) - Static method in class cn.hutool.crypto.KeyUtil
读取密钥库(Java Key Store,JKS) KeyStore文件
KeyStore文件用于数字证书的密钥对保存
see: http://snowolf.iteye.com/blog/391931
readJKSKeyStore(InputStream, char[]) - Static method in class cn.hutool.crypto.KeyUtil
读取密钥库(Java Key Store,JKS) KeyStore文件
KeyStore文件用于数字证书的密钥对保存
see: http://snowolf.iteye.com/blog/391931
readJKSKeyStore(InputStream, char[]) - Static method in class cn.hutool.crypto.SecureUtil
读取密钥库(Java Key Store,JKS) KeyStore文件
KeyStore文件用于数字证书的密钥对保存
see: http://snowolf.iteye.com/blog/391931
readKeyStore(String, File, char[]) - Static method in class cn.hutool.crypto.KeyUtil
读取KeyStore文件
KeyStore文件用于数字证书的密钥对保存
see: http://snowolf.iteye.com/blog/391931
readKeyStore(String, InputStream, char[]) - Static method in class cn.hutool.crypto.KeyUtil
读取KeyStore文件
KeyStore文件用于数字证书的密钥对保存
see: http://snowolf.iteye.com/blog/391931
readKeyStore(String, InputStream, char[]) - Static method in class cn.hutool.crypto.SecureUtil
读取KeyStore文件
KeyStore文件用于数字证书的密钥对保存
see: http://snowolf.iteye.com/blog/391931
readPem(InputStream) - Static method in class cn.hutool.crypto.PemUtil
从pem流中读取公钥或私钥
readPemKey(InputStream, char[]) - Static method in class cn.hutool.crypto.OpensslKeyUtil
从pem文件中读取公钥或私钥
根据类型返回 PublicKey 或者 PrivateKey
readPemKey(InputStream) - Static method in class cn.hutool.crypto.PemUtil
从pem文件中读取公钥或私钥
根据类型返回 PublicKey 或者 PrivateKey
readPemObject(InputStream) - Static method in class cn.hutool.crypto.PemUtil
读取pem文件中的信息,包括类型、头信息和密钥内容
readPemObject(Reader) - Static method in class cn.hutool.crypto.PemUtil
读取pem文件中的信息,包括类型、头信息和密钥内容
readPemPrivateKey(InputStream) - Static method in class cn.hutool.crypto.BCUtil
读取PEM格式的私钥
readPemPrivateKey(InputStream) - Static method in class cn.hutool.crypto.PemUtil
读取PEM格式的私钥,支持PKCS#8和PKCS#1的ECC格式
readPemPublicKey(InputStream) - Static method in class cn.hutool.crypto.BCUtil
读取PEM格式的公钥
readPemPublicKey(InputStream) - Static method in class cn.hutool.crypto.PemUtil
读取PEM格式的公钥
readPKCS12KeyStore(File, char[]) - Static method in class cn.hutool.crypto.KeyUtil
读取PKCS12 KeyStore文件
KeyStore文件用于数字证书的密钥对保存
readPKCS12KeyStore(InputStream, char[]) - Static method in class cn.hutool.crypto.KeyUtil
读取PKCS12 KeyStore文件
KeyStore文件用于数字证书的密钥对保存
readPublicKeyFromCert(InputStream) - Static method in class cn.hutool.crypto.KeyUtil
读取X.509 Certification文件中的公钥
Certification为证书文件
see: https://www.cnblogs.com/yinliang/p/10115519.html
readSm2PemPrivateKey(InputStream) - Static method in class cn.hutool.crypto.PemUtil
readX509Certificate(InputStream, char[], String) - Static method in class cn.hutool.crypto.KeyUtil
读取X.509 Certification文件
Certification为证书文件
see: http://snowolf.iteye.com/blog/391931
readX509Certificate(InputStream) - Static method in class cn.hutool.crypto.KeyUtil
读取X.509 Certification文件
Certification为证书文件
see: http://snowolf.iteye.com/blog/391931
readX509Certificate(InputStream, char[], String) - Static method in class cn.hutool.crypto.SecureUtil
读取X.509 Certification文件
Certification为证书文件
see: http://snowolf.iteye.com/blog/391931
readX509Certificate(InputStream) - Static method in class cn.hutool.crypto.SecureUtil
读取X.509 Certification文件
Certification为证书文件
see: http://snowolf.iteye.com/blog/391931
reset() - Method in class cn.hutool.crypto.digest.Digester
reset() - Method in class cn.hutool.crypto.digest.mac.BCMacEngine
 
reset() - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
 
reset() - Method in interface cn.hutool.crypto.digest.mac.MacEngine
重置
RSA - Class in cn.hutool.crypto.asymmetric
RSA公钥/私钥/签名加密解密 罗纳德·李维斯特(Ron [R]ivest)、阿迪·萨莫尔(Adi [S]hamir)和伦纳德·阿德曼(Leonard [A]dleman) 由于非对称加密速度极其缓慢,一般文件不使用它来加密而是使用对称加密,
非对称加密算法可以用来对对称加密的密钥加密,这样保证密钥的安全也就保证了数据的安全
RSA() - Constructor for class cn.hutool.crypto.asymmetric.RSA
构造,生成新的私钥公钥对
RSA(String) - Constructor for class cn.hutool.crypto.asymmetric.RSA
构造,生成新的私钥公钥对
RSA(String, String) - Constructor for class cn.hutool.crypto.asymmetric.RSA
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
RSA(String, String, String) - Constructor for class cn.hutool.crypto.asymmetric.RSA
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
RSA(byte[], byte[]) - Constructor for class cn.hutool.crypto.asymmetric.RSA
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
RSA(BigInteger, BigInteger, BigInteger) - Constructor for class cn.hutool.crypto.asymmetric.RSA
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
RSA(PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.RSA
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
RSA(String, PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.RSA
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
rsa() - Static method in class cn.hutool.crypto.SecureUtil
创建RSA算法对象
生成新的私钥公钥对
rsa(String, String) - Static method in class cn.hutool.crypto.SecureUtil
创建RSA算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
rsa(byte[], byte[]) - Static method in class cn.hutool.crypto.SecureUtil
创建RSA算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
rsAsn1ToPlain(byte[]) - Static method in class cn.hutool.crypto.SmUtil
BC的SM3withSM2签名得到的结果的rs是asn1格式的,这个方法转化成直接拼接r||s
rsPlainToAsn1(byte[]) - Static method in class cn.hutool.crypto.SmUtil
BC的SM3withSM2验签需要的rs是asn1格式的,这个方法将直接拼接r||s的字节数组转化成asn1格式

S

salt - Variable in class cn.hutool.crypto.digest.Digester
盐值
saltPosition - Variable in class cn.hutool.crypto.digest.Digester
加盐位置,即将盐值字符串放置在数据的index数,默认0
SecureUtil - Class in cn.hutool.crypto
安全相关工具类
加密分为三种:
1、对称加密(symmetric),例如:AES、DES等
2、非对称加密(asymmetric),例如:RSA、DSA等
3、摘要加密(digest),例如:MD5、SHA-1、SHA-256、HMAC等
SecureUtil() - Constructor for class cn.hutool.crypto.SecureUtil
 
setAdditional(byte[]) - Method in class cn.hutool.crypto.digest.Argon2
 
setAlgorithmParameterSpec(AlgorithmParameterSpec) - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
设置AlgorithmParameterSpec
在某些算法中,需要特别的参数,例如在ECIES中,此处为IESParameterSpec
setCertificate(Certificate) - Method in class cn.hutool.crypto.asymmetric.Sign
设置Certificate 为PublicKey
如果Certificate是X509Certificate,我们需要检查是否有密钥扩展
setDecryptBlockSize(int) - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
设置解密块大小
setDigest(Digest) - Method in class cn.hutool.crypto.asymmetric.SM2
设置Hash算法
setDigestCount(int) - Method in class cn.hutool.crypto.digest.Digester
设置重复计算摘要值次数
setEncoding(DSAEncoding) - Method in class cn.hutool.crypto.asymmetric.SM2
设置DSA signatures的编码
setEncryptBlockSize(int) - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
设置加密块大小
setHashLength(int) - Method in class cn.hutool.crypto.digest.Argon2
设置hash长度
setIterations(int) - Method in class cn.hutool.crypto.digest.Argon2
设置迭代次数
迭代次数越多,生成哈希的时间就越长,破解哈希就越困难
setIv(byte[]) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
设置偏移向量
setIv(IvParameterSpec) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
设置偏移向量
setKey(Key) - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
设置密钥,可以是公钥PublicKey或者私钥PrivateKey
setKey(String) - Method in class cn.hutool.crypto.symmetric.RC4
设置密钥
setMemoryAsKB(int) - Method in class cn.hutool.crypto.digest.Argon2
设置内存,单位KB
内存越大,生成哈希的时间就越长,破解哈希就越困难
setMode(SM2Engine.Mode) - Method in class cn.hutool.crypto.asymmetric.SM2
设置SM2模式,旧版是C1C2C3,新版本是C1C3C2
setMode(CipherMode) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
初始化模式并清空数据
setParallelism(int) - Method in class cn.hutool.crypto.digest.Argon2
设置并行度,即同时使用的核心数
值越高,生成哈希的时间就越长,破解哈希就越困难
setParameter(AlgorithmParameterSpec) - Method in class cn.hutool.crypto.asymmetric.Sign
设置签名的参数
setParams(AlgorithmParameterSpec) - Method in class cn.hutool.crypto.CipherWrapper
设置 AlgorithmParameterSpec,通常用于加盐或偏移向量
setParams(AlgorithmParameterSpec) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
设置 AlgorithmParameterSpec,通常用于加盐或偏移向量
setPrivateKey(PrivateKey) - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
设置私钥
setPrivateKey(PrivateKey) - Method in class cn.hutool.crypto.asymmetric.SM2
 
setPrivateKeyParams(ECPrivateKeyParameters) - Method in class cn.hutool.crypto.asymmetric.SM2
设置私钥参数
setPublicKey(PublicKey) - Method in class cn.hutool.crypto.asymmetric.BaseAsymmetric
设置公钥
setPublicKey(PublicKey) - Method in class cn.hutool.crypto.asymmetric.SM2
 
setPublicKeyParams(ECPublicKeyParameters) - Method in class cn.hutool.crypto.asymmetric.SM2
设置公钥参数
setRandom(SecureRandom) - Method in class cn.hutool.crypto.asymmetric.AsymmetricCrypto
设置随机数生成器,可自定义随机数种子
setRandom(SecureRandom) - Method in class cn.hutool.crypto.CipherWrapper
设置随机数生成器,可自定义随机数种子
setRandom(SecureRandom) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
设置随机数生成器,可自定义随机数种子
setSalt(byte[]) - Method in class cn.hutool.crypto.digest.Argon2
设置盐
setSalt(byte[]) - Method in class cn.hutool.crypto.digest.Digester
设置加盐内容
setSaltPosition(int) - Method in class cn.hutool.crypto.digest.Digester
设置加盐的位置,只有盐值存在时有效
加盐的位置指盐位于数据byte数组中的位置,例如: data: 0123456 则当saltPosition = 2时,盐位于data的1和2中间,即第二个空隙,即: data: 01[salt]23456
setSecret(byte[]) - Method in class cn.hutool.crypto.digest.Argon2
设置可选的密钥数据,用于增加哈希的复杂性
setSignature(Signature) - Method in class cn.hutool.crypto.asymmetric.Sign
设置签名
setUseBouncyCastle(boolean) - Static method in enum cn.hutool.crypto.GlobalBouncyCastleProvider
设置是否使用Bouncy Castle库
如果设置为false,表示强制关闭Bouncy Castle而使用JDK
setVersion(int) - Method in class cn.hutool.crypto.digest.Argon2
设置版本
sha1(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值
sha1(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值
sha1(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算sha1摘要值,使用UTF-8编码
sha1(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值
sha1(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值
sha1() - Static method in class cn.hutool.crypto.SecureUtil
SHA1加密
例:
SHA1加密:sha1().digest(data)
SHA1加密并转为16进制字符串:sha1().digestHex(data)
sha1(String) - Static method in class cn.hutool.crypto.SecureUtil
SHA1加密,生成16进制SHA1字符串
sha1(InputStream) - Static method in class cn.hutool.crypto.SecureUtil
SHA1加密,生成16进制SHA1字符串
sha1(File) - Static method in class cn.hutool.crypto.SecureUtil
SHA1加密文件,生成16进制SHA1字符串
sha1Hex(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值,并转为16进制字符串
sha1Hex(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值,并转为16进制字符串
sha1Hex(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值,并转为16进制字符串
sha1Hex(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值,并转为16进制字符串
sha1Hex(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值,并转为16进制字符串
sha256(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-256摘要值
sha256(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-256摘要值
sha256(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算sha256摘要值,使用UTF-8编码
sha256(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-256摘要值
sha256(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-256摘要值
sha256() - Static method in class cn.hutool.crypto.SecureUtil
SHA256加密
例:
SHA256加密:sha256().digest(data)
SHA256加密并转为16进制字符串:sha256().digestHex(data)
sha256(String) - Static method in class cn.hutool.crypto.SecureUtil
SHA256加密,生成16进制SHA256字符串
sha256(InputStream) - Static method in class cn.hutool.crypto.SecureUtil
SHA256加密,生成16进制SHA256字符串
sha256(File) - Static method in class cn.hutool.crypto.SecureUtil
SHA256加密文件,生成16进制SHA256字符串
sha256Hex(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值,并转为16进制字符串
sha256Hex(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-256摘要值,并转为16进制字符串
sha256Hex(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-256摘要值,并转为16进制字符串
sha256Hex(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-256摘要值,并转为16进制字符串
sha256Hex(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-256摘要值,并转为16进制字符串
sha512(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-512摘要值
sha512(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-512摘要值
sha512(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算sha512摘要值,使用UTF-8编码
sha512(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-512摘要值
sha512(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-512摘要值
sha512Hex(byte[]) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-1摘要值,并转为16进制字符串
sha512Hex(String, String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-512摘要值,并转为16进制字符串
sha512Hex(String) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-512摘要值,并转为16进制字符串
sha512Hex(InputStream) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-512摘要值,并转为16进制字符串
sha512Hex(File) - Static method in class cn.hutool.crypto.digest.DigestUtil
计算SHA-512摘要值,并转为16进制字符串
Sign - Class in cn.hutool.crypto.asymmetric
签名包装,Signature 包装类
Sign(SignAlgorithm) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造,创建新的私钥公钥对
Sign(String) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造,创建新的私钥公钥对
Sign(SignAlgorithm, String, String) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
Sign(SignAlgorithm, byte[], byte[]) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
Sign(SignAlgorithm, KeyPair) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
Sign(SignAlgorithm, PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
Sign(String, String, String) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造 私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
Sign(String, byte[], byte[]) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
Sign(String, KeyPair) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
Sign(String, PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.Sign
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
sign(String, Charset) - Method in class cn.hutool.crypto.asymmetric.Sign
生成文件签名
sign(String) - Method in class cn.hutool.crypto.asymmetric.Sign
生成文件签名
sign(byte[]) - Method in class cn.hutool.crypto.asymmetric.Sign
用私钥对信息生成数字签名
sign(InputStream) - Method in class cn.hutool.crypto.asymmetric.Sign
生成签名,使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
sign(InputStream, int) - Method in class cn.hutool.crypto.asymmetric.Sign
生成签名
sign(byte[]) - Method in class cn.hutool.crypto.asymmetric.SM2
用私钥对信息生成数字签名,签名格式为ASN1
* 在硬件签名中,返回结果为R+S,可以通过调用SmUtil.rsAsn1ToPlain(byte[])方法转换之。
sign(byte[], byte[]) - Method in class cn.hutool.crypto.asymmetric.SM2
用私钥对信息生成数字签名,签名格式为ASN1
在硬件签名中,返回结果为R+S,可以通过调用SmUtil.rsAsn1ToPlain(byte[])方法转换之。
sign(SignAlgorithm) - Static method in class cn.hutool.crypto.SecureUtil
创建签名算法对象
生成新的私钥公钥对
sign(SignAlgorithm, String, String) - Static method in class cn.hutool.crypto.SecureUtil
创建签名算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
sign(SignAlgorithm, byte[], byte[]) - Static method in class cn.hutool.crypto.SecureUtil
创建Sign算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
sign(SignAlgorithm) - Static method in class cn.hutool.crypto.SignUtil
创建签名算法对象
生成新的私钥公钥对
sign(SignAlgorithm, String, String) - Static method in class cn.hutool.crypto.SignUtil
创建签名算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
sign(SignAlgorithm, byte[], byte[]) - Static method in class cn.hutool.crypto.SignUtil
创建Sign算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做签名或验证
SignAlgorithm - Enum in cn.hutool.crypto.asymmetric
签名算法类型
see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Signature
signature - Variable in class cn.hutool.crypto.asymmetric.Sign
签名,用于签名和验证
signer - Variable in class cn.hutool.crypto.asymmetric.SM2
 
signHex(String, Charset) - Method in class cn.hutool.crypto.asymmetric.Sign
生成文件签名,并转为16进制字符串
signHex(String) - Method in class cn.hutool.crypto.asymmetric.Sign
生成文件签名
signHex(byte[]) - Method in class cn.hutool.crypto.asymmetric.Sign
生成签名,并转为16进制字符串
signHex(InputStream) - Method in class cn.hutool.crypto.asymmetric.Sign
生成签名,并转为16进制字符串
使用默认缓存大小,见 NioUtil.DEFAULT_BUFFER_SIZE
signHex(String) - Method in class cn.hutool.crypto.asymmetric.SM2
Deprecated.
signHex(String, String) - Method in class cn.hutool.crypto.asymmetric.SM2
Deprecated.
signHexFromHex(String) - Method in class cn.hutool.crypto.asymmetric.SM2
用私钥对信息生成数字签名
signHexFromHex(String, String) - Method in class cn.hutool.crypto.asymmetric.SM2
用私钥对信息生成数字签名
signParams(SymmetricCrypto, Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SecureUtil
对参数做签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParams(SymmetricCrypto, Map<?, ?>, String, String, boolean, String...) - Static method in class cn.hutool.crypto.SecureUtil
对参数做签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
signParams(DigestAlgorithm, Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SecureUtil
对参数做签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParams(DigestAlgorithm, Map<?, ?>, String, String, boolean, String...) - Static method in class cn.hutool.crypto.SecureUtil
对参数做签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
signParams(SymmetricCrypto, Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SignUtil
对参数做签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParams(SymmetricCrypto, Map<?, ?>, String, String, boolean, String...) - Static method in class cn.hutool.crypto.SignUtil
对参数做签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
signParams(DigestAlgorithm, Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SignUtil
对参数做签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParams(DigestAlgorithm, Map<?, ?>, String, String, boolean, String...) - Static method in class cn.hutool.crypto.SignUtil
对参数做签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
signParamsMd5(Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SecureUtil
对参数做md5签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParamsMd5(Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SignUtil
对参数做md5签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParamsSha1(Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SecureUtil
对参数做Sha1签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParamsSha1(Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SignUtil
对参数做Sha1签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParamsSha256(Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SecureUtil
对参数做Sha256签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
signParamsSha256(Map<?, ?>, String...) - Static method in class cn.hutool.crypto.SignUtil
对参数做Sha256签名
参数签名为对Map参数按照key的顺序排序后拼接为字符串,然后根据提供的签名算法生成签名字符串
拼接后的字符串键值对之间无符号,键值对之间无符号,忽略null值
SignUtil - Class in cn.hutool.crypto
签名工具类
封装包括: 非对称签名,签名算法支持见SignAlgorithm 对称签名,支持Map类型参数排序后签名 摘要签名,支持Map类型参数排序后签名,签名方法见:DigestAlgorithm
SignUtil() - Constructor for class cn.hutool.crypto.SignUtil
 
SM2 - Class in cn.hutool.crypto.asymmetric
国密SM2非对称算法实现,基于BC库
SM2算法只支持公钥加密,私钥解密
参考:https://blog.csdn.net/pridas/article/details/86118774 国密算法包括: 非对称加密和签名:SM2 摘要签名算法:SM3 对称加密:SM4
SM2() - Constructor for class cn.hutool.crypto.asymmetric.SM2
构造,生成新的私钥公钥对
SM2(String, String) - Constructor for class cn.hutool.crypto.asymmetric.SM2
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
SM2(byte[], byte[]) - Constructor for class cn.hutool.crypto.asymmetric.SM2
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
SM2(PrivateKey, PublicKey) - Constructor for class cn.hutool.crypto.asymmetric.SM2
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
SM2(String, String, String) - Constructor for class cn.hutool.crypto.asymmetric.SM2
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
SM2(byte[], byte[], byte[]) - Constructor for class cn.hutool.crypto.asymmetric.SM2
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
SM2(ECPrivateKeyParameters, ECPublicKeyParameters) - Constructor for class cn.hutool.crypto.asymmetric.SM2
构造
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
sm2() - Static method in class cn.hutool.crypto.SmUtil
创建SM2算法对象
生成新的私钥公钥对
sm2(String, String) - Static method in class cn.hutool.crypto.SmUtil
创建SM2算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
sm2(byte[], byte[]) - Static method in class cn.hutool.crypto.SmUtil
创建SM2算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
sm2(PrivateKey, PublicKey) - Static method in class cn.hutool.crypto.SmUtil
创建SM2算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
sm2(ECPrivateKeyParameters, ECPublicKeyParameters) - Static method in class cn.hutool.crypto.SmUtil
创建SM2算法对象
私钥和公钥同时为空时生成一对新的私钥和公钥
私钥和公钥可以单独传入一个,如此则只能使用此钥匙来做加密或者解密
SM2_CURVE_NAME - Static variable in class cn.hutool.crypto.SmUtil
SM2默认曲线
SM2_DEFAULT_CURVE - Static variable in class cn.hutool.crypto.KeyUtil
SM2默认曲线 Default SM2 curve
SM2_DOMAIN_PARAMS - Static variable in class cn.hutool.crypto.SmUtil
SM2推荐曲线参数(来自https://github.com/ZZMarquis/gmhelper)
SM3 - Class in cn.hutool.crypto.digest
国密SM3杂凑(摘要)算法 国密算法包括: 非对称加密和签名:SM2 摘要签名算法:SM3 对称加密:SM4
SM3() - Constructor for class cn.hutool.crypto.digest.SM3
构造
SM3(byte[]) - Constructor for class cn.hutool.crypto.digest.SM3
构造
SM3(byte[], int) - Constructor for class cn.hutool.crypto.digest.SM3
构造
SM3(byte[], int, int) - Constructor for class cn.hutool.crypto.digest.SM3
构造
sm3() - Static method in class cn.hutool.crypto.SmUtil
SM3加密
例:
SM3加密:sm3().digest(data)
SM3加密并转为16进制字符串:sm3().digestHex(data)
sm3(String) - Static method in class cn.hutool.crypto.SmUtil
SM3加密,生成16进制SM3字符串
sm3(InputStream) - Static method in class cn.hutool.crypto.SmUtil
SM3加密,生成16进制SM3字符串
sm3(File) - Static method in class cn.hutool.crypto.SmUtil
SM3加密文件,生成16进制SM3字符串
sm3WithSalt(byte[]) - Static method in class cn.hutool.crypto.SmUtil
SM3加密,可以传入盐
sm4() - Static method in class cn.hutool.crypto.SmUtil
SM4加密,生成随机KEY。
sm4(byte[]) - Static method in class cn.hutool.crypto.SmUtil
SM4加密
例: SM4加密:sm4(key).encrypt(data) SM4解密:sm4(key).decrypt(data)
SM4 - Class in cn.hutool.crypto.symmetric
国密对称堆成加密算法SM4实现 国密算法包括: 非对称加密和签名:SM2 摘要签名算法:SM3 对称加密:SM4
SM4() - Constructor for class cn.hutool.crypto.symmetric.SM4
构造,使用随机密钥
SM4(byte[]) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(Mode, Padding) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造,使用随机密钥
SM4(Mode, Padding, byte[]) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(Mode, Padding, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(Mode, Padding, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(Mode, Padding, SecretKey, byte[]) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(Mode, Padding, SecretKey, IvParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(String, String) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(String, String, byte[]) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(String, String, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(String, String, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4(String, String, SecretKey, IvParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.SM4
构造
SM4MacEngine - Class in cn.hutool.crypto.digest.mac
SM4算法的MAC引擎实现
SM4MacEngine(CipherParameters) - Constructor for class cn.hutool.crypto.digest.mac.SM4MacEngine
构造
SmUtil - Class in cn.hutool.crypto
SM国密算法工具类
此工具类依赖org.bouncycastle:bcprov-jdk15to18 封装包括: SM2 椭圆曲线非对称加密和签名 SM3 杂凑算法 SM4 对称加密
SmUtil() - Constructor for class cn.hutool.crypto.SmUtil
 
SymmetricAlgorithm - Enum in cn.hutool.crypto.symmetric
对称算法类型
see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyGenerator
SymmetricCrypto - Class in cn.hutool.crypto.symmetric
对称加密算法
在对称加密算法中,数据发信方将明文(原始数据)和加密密钥一起经过特殊加密算法处理后,使其变成复杂的加密密文发送出去。
SymmetricCrypto(SymmetricAlgorithm) - Constructor for class cn.hutool.crypto.symmetric.SymmetricCrypto
构造,使用随机密钥
SymmetricCrypto(String) - Constructor for class cn.hutool.crypto.symmetric.SymmetricCrypto
构造,使用随机密钥
SymmetricCrypto(SymmetricAlgorithm, byte[]) - Constructor for class cn.hutool.crypto.symmetric.SymmetricCrypto
构造
SymmetricCrypto(SymmetricAlgorithm, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.SymmetricCrypto
构造
SymmetricCrypto(String, byte[]) - Constructor for class cn.hutool.crypto.symmetric.SymmetricCrypto
构造
SymmetricCrypto(String, SecretKey) - Constructor for class cn.hutool.crypto.symmetric.SymmetricCrypto
构造
SymmetricCrypto(String, SecretKey, AlgorithmParameterSpec) - Constructor for class cn.hutool.crypto.symmetric.SymmetricCrypto
构造
SymmetricDecryptor - Interface in cn.hutool.crypto.symmetric
对称解密器接口,提供: 从bytes解密 从Hex(16进制)解密 从Base64解密
SymmetricEncryptor - Interface in cn.hutool.crypto.symmetric
对称加密器接口,提供: 加密为bytes 加密为Hex(16进制) 加密为Base64

T

toBase64(Key) - Static method in class cn.hutool.crypto.KeyUtil
将密钥编码为Base64格式
toDomainParams(ECParameterSpec) - Static method in class cn.hutool.crypto.BCUtil
构建ECDomainParameters对象
toDomainParams(String) - Static method in class cn.hutool.crypto.BCUtil
构建ECDomainParameters对象
toDomainParams(X9ECParameters) - Static method in class cn.hutool.crypto.BCUtil
构建ECDomainParameters对象
toParams(Key) - Static method in class cn.hutool.crypto.BCUtil
密钥转换为AsymmetricKeyParameter
toParams(String, ECDomainParameters) - Static method in class cn.hutool.crypto.BCUtil
转换为 ECPrivateKeyParameters
toParams(byte[], ECDomainParameters) - Static method in class cn.hutool.crypto.BCUtil
转换为 ECPrivateKeyParameters
toParams(BigInteger, ECDomainParameters) - Static method in class cn.hutool.crypto.BCUtil
转换为 ECPrivateKeyParameters
toParams(BigInteger, BigInteger, ECDomainParameters) - Static method in class cn.hutool.crypto.BCUtil
转换为ECPublicKeyParameters
toParams(String, String, ECDomainParameters) - Static method in class cn.hutool.crypto.BCUtil
转换为ECPublicKeyParameters
toParams(byte[], byte[], ECDomainParameters) - Static method in class cn.hutool.crypto.BCUtil
转换为ECPublicKeyParameters
toParams(PublicKey) - Static method in class cn.hutool.crypto.BCUtil
公钥转换为 ECPublicKeyParameters
toParams(PrivateKey) - Static method in class cn.hutool.crypto.BCUtil
私钥转换为 ECPrivateKeyParameters
toParams(Key) - Static method in class cn.hutool.crypto.ECKeyUtil
密钥转换为AsymmetricKeyParameter
toPem(String, byte[]) - Static method in class cn.hutool.crypto.PemUtil
将私钥或公钥转换为PEM格式的字符串
toPkcs1(PrivateKey) - Static method in class cn.hutool.crypto.BCUtil
Java中的PKCS#8格式私钥转换为OpenSSL支持的PKCS#1格式
toPkcs1(PublicKey) - Static method in class cn.hutool.crypto.BCUtil
Java中的X.509格式公钥转换为OpenSSL支持的PKCS#1格式
toPrivateParams(String, ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为 ECPrivateKeyParameters
toPrivateParams(byte[], ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为 ECPrivateKeyParameters
toPrivateParams(BigInteger, ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为 ECPrivateKeyParameters
toPrivateParams(PrivateKey) - Static method in class cn.hutool.crypto.ECKeyUtil
私钥转换为 ECPrivateKeyParameters
toPublicParams(String, String, ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为ECPublicKeyParameters
toPublicParams(byte[], byte[], ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为ECPublicKeyParameters
toPublicParams(BigInteger, BigInteger, ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为ECPublicKeyParameters
toPublicParams(String, ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为ECPublicKeyParameters
toPublicParams(byte[], ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为ECPublicKeyParameters
toPublicParams(ECPoint, ECDomainParameters) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为ECPublicKeyParameters
toPublicParams(PublicKey) - Static method in class cn.hutool.crypto.ECKeyUtil
公钥转换为 ECPublicKeyParameters
toSm2Params(String) - Static method in class cn.hutool.crypto.BCUtil
转换为 ECPrivateKeyParameters
toSm2Params(byte[]) - Static method in class cn.hutool.crypto.BCUtil
转换为 ECPrivateKeyParameters
toSm2Params(BigInteger) - Static method in class cn.hutool.crypto.BCUtil
转换为 ECPrivateKeyParameters
toSm2Params(String, String) - Static method in class cn.hutool.crypto.BCUtil
转换为SM2的ECPublicKeyParameters
toSm2Params(byte[], byte[]) - Static method in class cn.hutool.crypto.BCUtil
转换为SM2的ECPublicKeyParameters
toSm2PrivateKey(ECPrivateKey) - Static method in class cn.hutool.crypto.ECKeyUtil
将SM2算法的ECPrivateKey 转换为 PrivateKey
toSm2PrivateParams(String) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为 ECPrivateKeyParameters
toSm2PrivateParams(byte[]) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为 ECPrivateKeyParameters
toSm2PrivateParams(BigInteger) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为 ECPrivateKeyParameters
toSm2PublicParams(byte[]) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为 ECPublicKeyParameters
toSm2PublicParams(String) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为 ECPublicKeyParameters
toSm2PublicParams(String, String) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为SM2的ECPublicKeyParameters
toSm2PublicParams(byte[], byte[]) - Static method in class cn.hutool.crypto.ECKeyUtil
转换为SM2的ECPublicKeyParameters
TOTP - Class in cn.hutool.crypto.digest.otp
time-based one-time passwords (TOTP) 基于时间戳算法的一次性密码生成器, 规范见:RFC 6238.
TOTP(byte[]) - Constructor for class cn.hutool.crypto.digest.otp.TOTP
构造,使用默认HMAC算法(HmacSHA1)
TOTP(Duration, byte[]) - Constructor for class cn.hutool.crypto.digest.otp.TOTP
构造,使用默认HMAC算法(HmacSHA1)
TOTP(Duration, int, byte[]) - Constructor for class cn.hutool.crypto.digest.otp.TOTP
构造,使用默认HMAC算法(HmacSHA1)
TOTP(Duration, int, HmacAlgorithm, byte[]) - Constructor for class cn.hutool.crypto.digest.otp.TOTP
构造

U

update(byte[], int, int) - Method in class cn.hutool.crypto.digest.mac.BCMacEngine
 
update(byte[]) - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
 
update(byte[], int, int) - Method in class cn.hutool.crypto.digest.mac.DefaultHMacEngine
 
update(byte[]) - Method in interface cn.hutool.crypto.digest.mac.MacEngine
加入需要被摘要的内容
update(byte[], int, int) - Method in interface cn.hutool.crypto.digest.mac.MacEngine
加入需要被摘要的内容
update(byte[]) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
更新数据,分组加密中间结果可以当作随机数
第一次更新数据前需要调用SymmetricCrypto.setMode(CipherMode)初始化加密或解密模式,然后每次更新数据都是累加模式
updateHex(byte[]) - Method in class cn.hutool.crypto.symmetric.SymmetricCrypto
更新数据,分组加密中间结果可以当作随机数
第一次更新数据前需要调用SymmetricCrypto.setMode(CipherMode)初始化加密或解密模式,然后每次更新数据都是累加模式
usePlainEncoding() - Method in class cn.hutool.crypto.asymmetric.SM2
设置DSA signatures的编码为PlainDSAEncoding

V

validate(Instant, int, int) - Method in class cn.hutool.crypto.digest.otp.TOTP
用于验证code是否正确
valueOf(String) - Static method in enum cn.hutool.crypto.asymmetric.AsymmetricAlgorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.asymmetric.KeyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.asymmetric.SignAlgorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.CipherMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.digest.DigestAlgorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.digest.HmacAlgorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.GlobalBouncyCastleProvider
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.Padding
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.symmetric.fpe.FPE.FPEMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.symmetric.SymmetricAlgorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum cn.hutool.crypto.symmetric.ZUC.ZUCAlgorithm
Returns the enum constant of this type with the specified name.
values() - Static method in enum cn.hutool.crypto.asymmetric.AsymmetricAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.asymmetric.KeyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.asymmetric.SignAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.CipherMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.digest.DigestAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.digest.HmacAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.GlobalBouncyCastleProvider
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.Padding
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.symmetric.fpe.FPE.FPEMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.symmetric.SymmetricAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum cn.hutool.crypto.symmetric.ZUC.ZUCAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
verify(byte[], byte[]) - Method in class cn.hutool.crypto.asymmetric.Sign
用公钥检验数字签名的合法性
verify(byte[], byte[]) - Method in class cn.hutool.crypto.asymmetric.SM2
用公钥检验数字签名的合法性
verify(byte[], byte[], byte[]) - Method in class cn.hutool.crypto.asymmetric.SM2
用公钥检验数字签名的合法性
verify(byte[], byte[]) - Method in class cn.hutool.crypto.digest.mac.Mac
验证生成的摘要与给定的摘要比较是否一致
简单比较每个byte位是否相同
verifyHex(String, String) - Method in class cn.hutool.crypto.asymmetric.SM2
用公钥检验数字签名的合法性
verifyHex(String, String, String) - Method in class cn.hutool.crypto.asymmetric.SM2
用公钥检验数字签名的合法性
Vigenere - Class in cn.hutool.crypto.symmetric
维吉尼亚密码实现。
Vigenere() - Constructor for class cn.hutool.crypto.symmetric.Vigenere
 

W

writePemObject(String, byte[], OutputStream) - Static method in class cn.hutool.crypto.PemUtil
写出pem密钥(私钥、公钥、证书)
writePemObject(String, byte[], Writer) - Static method in class cn.hutool.crypto.PemUtil
写出pem密钥(私钥、公钥、证书)
writePemObject(PemObjectGenerator, OutputStream) - Static method in class cn.hutool.crypto.PemUtil
写出pem密钥(私钥、公钥、证书)
writePemObject(PemObjectGenerator, Writer) - Static method in class cn.hutool.crypto.PemUtil
写出pem密钥(私钥、公钥、证书)

X

XXTEA - Class in cn.hutool.crypto.symmetric
XXTEA(Corrected Block Tiny Encryption Algorithm)算法实现
来自:https://github.com/xxtea/xxtea-java
XXTEA(byte[]) - Constructor for class cn.hutool.crypto.symmetric.XXTEA
构造

Z

ZUC - Class in cn.hutool.crypto.symmetric
祖冲之算法集(ZUC算法)实现,基于BouncyCastle实现。
ZUC(ZUC.ZUCAlgorithm, byte[], byte[]) - Constructor for class cn.hutool.crypto.symmetric.ZUC
构造
ZUC.ZUCAlgorithm - Enum in cn.hutool.crypto.symmetric
ZUC类型,包括128位和256位
zuc128(byte[], byte[]) - Static method in class cn.hutool.crypto.SecureUtil
祖冲之算法集(ZUC-128算法)实现,基于BouncyCastle实现。
zuc256(byte[], byte[]) - Static method in class cn.hutool.crypto.SecureUtil
祖冲之算法集(ZUC-256算法)实现,基于BouncyCastle实现。
A B C D E F G H I K L M O P R S T U V W X Z 
Skip navigation links

Copyright © 2025. All rights reserved.