EncryptionHelper class

Allows to perform common encryption operations such as RSA/AES encryption and decryption.

Constructors

EncryptionHelper()

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

decryptBytesWithRsa(Uint8List data, RSAPrivateKey key) → Uint8List
Decrypts the given data using the specified private key.
decryptWithAes(Uint8List data, Uint8List key) → Uint8List
Decrypts the given data with AES using the specified key.
encryptBytesWithAes(Uint8List data, Uint8List key) → Uint8List
Encrypts the given data with AES using the specified key.
encryptBytesWithRsa(Uint8List data, RSAPublicKey key) → Uint8List
Encrypts the given data with RSA using the specified key.
encryptStringWithAes(String data, Uint8List key) → Uint8List
Encrypts the given data with AES using the specified key.
encryptStringWithAesGCM(String data, Uint8List key) → Uint8List
encryptStringWithRsa(String data, RSAPublicKey key) → Uint8List
Encrypts the given data with RSA using the specified key.
getGovernmentRsaPubKey(Uri lcdUrl, {Client? client}) → Future<CommercioRSAPublicKey>
encrypting the data that only it should see. Returns the RSA public key associated to the government that should be used when