# Encryption helper
Encryption helper allows to perform common encryption operations such as RSA/AES encryption and decryption.
# Provided operations
Below you can find the encryption helper's provided operations with some examples
Encrypts the given string
data
with AES using the specifiedkey
static Uint8List encryptStringWithAes(String data, Uint8List key)
1Encrypts the given string
data
with AES-GCM mode using the specifiedkey
static Uint8List encryptStringWithAesGCM(String data, Uint8List key)
1Encrypts the given bytes
data
with AES using the specifiedkey
static Uint8List encryptBytesWithAes(Uint8List data, Uint8List key)
1Decrypts the given bytes
data
with AES using the specifiedkey
static Uint8List decryptWithAes(Uint8List data, Uint8List key)
1Encrypts the given string
data
with RSA using the specifiedkey
static Uint8List encryptStringWithRsa(String data, RSAPublicKey key)
1Encrypts the given bytes
data
with RSA using the specifiedkey
static Uint8List encryptBytesWithRsa(Uint8List data, RSAPublicKey key)
1Decrypts the given bytes
data
with RSA using the specified privatekey
static Uint8List decryptBytesWithRsa(Uint8List data, RSAPrivateKey key)
1Returns the RSA Public key associated to the government that should be used when encrypting the data that only it should see
static Future<CommercioRSAPublicKey> getGovernmentRsaPubKey( Uri lcdUrl, { http.Client? client, })
1
2
3
4
← SignHelper KeysHelper →