RSAUtil class
Constructors
- RSAUtil()
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
-
creatdParseKey(
String privateKeyString) → RSAPrivateKey - 字符串转成私钥
-
creatdPublicKey(
String publicKeyString) → RSAPublicKey - 字符串转成公钥
-
decrypt(
RSAPrivateKey privateKey, String ciphertext) → String - 解密
-
encrypt(
RSAPublicKey publicKey, String plainText) → String - 加密
-
sign(
RSAPrivateKey privateKey, String data) → String - 签名