Uses of Enum Class
org.aoju.bus.crypto.asymmetric.KeyType
Packages that use KeyType
-
Uses of KeyType in org.aoju.bus.crypto.asymmetric
Methods in org.aoju.bus.crypto.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.aoju.bus.crypto.asymmetric with parameters of type KeyTypeModifier and TypeMethodDescriptionbyte[]byte[]解密default byte[]Decryptor.decrypt(InputStream data, KeyType keyType) 解密default byte[]从Hex或Base64字符串解密,编码为UTF-8格式byte[]byte[]解密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[]加密default byte[]加密,使用UTF-8编码byte[]byte[]加密,SM2非对称加密的结果由C1,C3,C2三部分组成,其中: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) 根据密钥类型获得相应密钥