Uses of Enum Class
org.miaixz.bus.crypto.builtin.asymmetric.KeyType
Packages that use KeyType
Package
Description
非对称加密的支持,包括RSA等
加密解密模块,实现了对JDK中加密解密算法的封装。
-
Uses of KeyType in org.miaixz.bus.crypto.builtin.asymmetric
Methods in org.miaixz.bus.crypto.builtin.asymmetric that return KeyTypeModifier and TypeMethodDescriptionstatic KeyTypeReturns the enum constant of this class with the specified name.static KeyType[]KeyType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.miaixz.bus.crypto.builtin.asymmetric with parameters of type KeyTypeModifier and TypeMethodDescriptionbyte[]byte[]解密default byte[]Decryptor.decrypt(InputStream data, KeyType keyType) 解密default byte[]从Hex或Base64字符串解密,编码为UTF-8格式default StringDecryptor.decryptString(String data, KeyType keyType) 解密为字符串,密文需为Hex(16进制)或Base64字符串default StringDecryptor.decryptString(String data, KeyType keyType, Charset charset) 解密为字符串,密文需为Hex(16进制)或Base64字符串byte[]byte[]加密default byte[]Encryptor.encrypt(InputStream data, KeyType keyType) 加密default byte[]加密default byte[]加密,使用UTF-8编码default StringEncryptor.encryptBase64(byte[] data, KeyType keyType) 编码为Base64字符串default StringEncryptor.encryptBase64(InputStream data, KeyType keyType) 编码为Base64字符串default StringEncryptor.encryptBase64(String data, Charset charset, KeyType keyType) 编码为Base64字符串default StringEncryptor.encryptBase64(String data, KeyType keyType) 编码为Base64字符串,使用UTF-8编码default StringEncryptor.encryptHex(byte[] data, KeyType keyType) 编码为Hex字符串default StringEncryptor.encryptHex(InputStream data, KeyType keyType) 编码为Hex字符串default StringEncryptor.encryptHex(String data, Charset charset, KeyType keyType) 编码为Hex字符串default StringEncryptor.encryptHex(String data, KeyType keyType) 编码为Hex字符串protected KeyAsymmetric.getKeyByType(KeyType type) 根据密钥类型获得相应密钥 -
Uses of KeyType in org.miaixz.bus.crypto.center
Methods in org.miaixz.bus.crypto.center with parameters of type KeyType