类 CommonCryptoUtils
java.lang.Object
org.cattleframework.security.crypto.CommonCryptoUtils
通用加密工具
- 作者:
- orange
-
方法概要
修饰符和类型方法说明static byte[]decryptCbc(CommonCryptoType cryptoType, byte[] encryptData, byte[] key, byte[] iv, PaddingType paddingType) static byte[]decryptEcb(CommonCryptoType cryptoType, byte[] encryptData, byte[] key, PaddingType paddingType) static byte[]encryptCbc(CommonCryptoType cryptoType, byte[] data, byte[] key, byte[] iv, PaddingType paddingType) static byte[]encryptEcb(CommonCryptoType cryptoType, byte[] data, byte[] key, PaddingType paddingType) static byte[]generateCryptoKey(CommonCryptoType cryptoType, int keySize) static byte[]generateIv(CommonCryptoType cryptoType, PaddingType paddingType) static SecretKeygenerateSecretKey(CommonCryptoType cryptoType, int keySize) static SecretKeygetSecretKey(CommonCryptoType cryptoType, byte[] key)
-
方法详细资料
-
generateCryptoKey
-
generateSecretKey
-
getSecretKey
-
generateIv
-
encryptCbc
public static byte[] encryptCbc(CommonCryptoType cryptoType, byte[] data, byte[] key, byte[] iv, PaddingType paddingType) -
decryptCbc
public static byte[] decryptCbc(CommonCryptoType cryptoType, byte[] encryptData, byte[] key, byte[] iv, PaddingType paddingType) -
encryptEcb
public static byte[] encryptEcb(CommonCryptoType cryptoType, byte[] data, byte[] key, PaddingType paddingType) -
decryptEcb
public static byte[] decryptEcb(CommonCryptoType cryptoType, byte[] encryptData, byte[] key, PaddingType paddingType)
-