# 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 - datawith AES using the specified- key.- fun encryptWithAes(data: String, key: SecretKey): ByteArray1
- Encrypts the given - datawith AES using the specified- key.- fun encryptWithAes(data: ByteArray, key: SecretKey): ByteArray1
- Decrypts the given - datawith AES using the specified- key.- fun decryptWithAes(data: ByteArray, key: SecretKey): ByteArray1
- Encrypts the given - datawith AES-GCM using the specified- key.- fun encryptStringWithAesGCM(data: ByteArray, key: SecretKey): ByteArray1
- Encrypts the given - datawith RSA and the specified- key.- fun encryptWithRsa(data: String, key: PublicKey): ByteArray1
- Encrypts the given - datawith RSA using the specified- key.- fun encryptWithRsa(data: ByteArray, key: PublicKey): ByteArray1
- Encrypts the given data with RSA using the specified - certificate.- fun encryptWithRsa(data: String, certificate: X509Certificate): ByteArray1
- Encrypts the given - datawith RSA using the specified- certificate.- fun encryptWithRsa(data: ByteArray, certificate: X509Certificate): ByteArray1
- Decrypts the given data using the specified private - key.- fun decryptWithRsa(data: ByteArray, key: PrivateKey): ByteArray1
- Returns the RSA - PublicKeyassociated to the government that should be used when encrypting the data that only it should see.- suspend fun getGovernmentRsaPubKey(lcdUrl: String): PublicKey1