EncrypterUtil class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

aesDecrypt(String key, String data) String?
aes解密 key 长度为32的密钥 data 需要解密的base64内容
aesEncrypt(String key, String data) String?
aes加密 key 长度为32的密钥 data 需要加密的内容
aesRsaDecrypt(String aesEncryptKey, String publicKey, String data) String?
AES+RSA混合加密 aesKey 加密之后的aes的key publicKey Rsa的公钥 data 需要解密的内容
aesRsaEncrypt(String aesKey, String publicKey, String data) Map<String, String>?
AES+RSA混合解密 aesKey 长度为32的AES的密钥 publicKey Rsa的公钥 data 需要加密的内容
aesRsaPrivateDecrypt(String aesEncryptKey, String privateKey, String data) String?
AES+RSA混合加密 aesKey 加密之后的aes的key privateKey Rsa的私钥 data 需要解密的内容
aesRsaPrivateEncrypt(String aesKey, String privateKey, String data) Map<String, String>?
AES+RSA混合解密 aesKey 长度为32的AES的密钥 privateKey Rsa的私钥 data 需要加密的内容
fullStrTo16(String str) String
字符串长度不是16的倍数时补充完整
getAesKey() String
rsaDecrypt(String publicKey, String data) String?
rsa解密 publicKey rsa 公钥 data 需要解密的base64内容
rsaEncrypt(String publicKey, String data) String?
rsa加密 publicKey rsa 公钥 data 需要加密的内容
rsaPrivateDecrypt(String privateKey, String data) String?
rsa解密 privateKey rsa 私钥 data 需要解密的base64内容
rsaPrivateEncrypt(String privateKey, String data) String?
rsa加密 privateKey rsa私钥 data 需要加密的内容