sm2Cipher.cipher library Null safety

Classes

NullSecureRandom

Properties

sha3digest SHA3Digest
final

Functions

btcAddress(PublicKey pk) String
return a BTC Address
byteSecret(String privateString, String publicString) List<List<int>>
return a Bytes data secret
ethAddress(PublicKey pk) String
generateKeyPair() AsymmetricKeyPair<PublicKey, PrivateKey>
Generate Keypair
left_padding(String s, int width) String
loadPrivateKey(String storedkey) ECPrivateKey
return a privateKey from hex string
loadPublicKey(String storedkey) ECPublicKey
return a publicKey from hex string
privateDecrypt(String privateString, String publicString, String b64encoded, [String b64IV = ""]) String
Decrypt data using self private key
privateDecryptRaw(String privateString, String publicString, Uint8List encd_data, [String b64IV = ""]) Uint8List
privateSign(String strPrivateKey, String message) String
processCrypto(Uint8List secret, Uint8List iv, Uint8List data) Uint8List
pubkeyEncrypt(String privateString, String publicString, String message) Map
Encrypt data using target public key
pubkeyEncryptRaw(String privateString, String publicString, Uint8List data) Map
publicVerify(String strPublicKey, String message, String strSignature) bool
rawSecret(String privateString, String publicString) ECPoint
return a ECPoint data secret
strinifyPrivateKey(PrivateKey pk) String
return a hex string version privateKey
strinifyPublicKey(PublicKey pk) String
return a hex string version publicKey
strinifyPublicKeyFromPrivatekey(PrivateKey pk) String