类 RsaUtils
java.lang.Object
org.cattleframework.security.crypto.RsaUtils
Rsa工具
- 作者:
- orange
-
方法概要
修饰符和类型方法说明static byte[]decryptByPrivateKey(byte[] encryptData, PrivateKey privateKey) static byte[]decryptByPublicKey(byte[] encryptData, PublicKey publicKey) static byte[]encryptByPrivateKey(byte[] data, PrivateKey privateKey) static byte[]encryptByPublicKey(byte[] data, PublicKey publicKey) static KeyPairgenerateCryptoKey(int keySize) static RSAPrivateKeygetPrivateKey(byte[] privateKey) static RSAPublicKeygetPublicKey(byte[] publicKey) static byte[]sign(byte[] data, PrivateKey privateKey) static boolean
-
方法详细资料
-
generateCryptoKey
-
getPublicKey
-
getPrivateKey
-
sign
-
verify
-
encryptByPublicKey
-
encryptByPrivateKey
-
decryptByPublicKey
-
decryptByPrivateKey
-