# 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
datawith AES using the specifiedkeystatic Uint8List encryptStringWithAes(String data, Uint8List key)1Encrypts the given string
datawith AES-GCM mode using the specifiedkeystatic Uint8List encryptStringWithAesGCM(String data, Uint8List key)1Encrypts the given bytes
datawith AES using the specifiedkeystatic Uint8List encryptBytesWithAes(Uint8List data, Uint8List key)1Decrypts the given bytes
datawith AES using the specifiedkeystatic Uint8List decryptWithAes(Uint8List data, Uint8List key)1Encrypts the given string
datawith RSA using the specifiedkeystatic Uint8List encryptStringWithRsa(String data, RSAPublicKey key)1Encrypts the given bytes
datawith RSA using the specifiedkeystatic Uint8List encryptBytesWithRsa(Uint8List data, RSAPublicKey key)1Decrypts the given bytes
datawith RSA using the specified privatekeystatic 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 →