encryption library
Properties
- aesKey ↔ Key
-
read / write
- robotPubKey ↔ RSAPublicKey
-
read / write
- robotPubKeyPem ↔ String
-
read / write
Functions
-
decryptPayload(
Uint8List data) → Uint8List -
encryptPayload(
Uint8List data) → Uint8List -
generateAESKey(
) → void -
parsePublicKey(
Uint8List pub) → RSAPublicKey -
rsaDecrypt(
RSAPrivateKey myPrivate, Uint8List cipherText) → Uint8List -
rsaEncrypt(
RSAPublicKey myPublic, Uint8List dataToEncrypt) → Uint8List