# Encrypt Asymmetric

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-code-flow/encrypt-asymmetric
>
> Encrypts text with an RSA public key (X509, Base64) using PKCS1 or OAEP padding, so only the matching private key can decrypt it.

Encrypt Asymmetric will use a Public Key to encrypt the data that can only be decrypted with the corresponding Private Key.

Action available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

### Parameters

* **Data Type** _\<numeric> -_ Select a File or Text to be Encrypted.
  * 1 - Text UTF-16 LE
  * 2 - Text ANSI/Binary
  * 3 - Text UTF-8
* **Source** _\<String> -_ Select a Text, Variable or control to be Encrypted.
* **Target** - Select a Variable or Control
* **Result Encoding** _\<numeric>_
  * 1 - None (Binary)
  * 2 - Base 64
* **Algorithm** _\<numeric> -_ Select the algorithm to be used:
  * 1- RSA PKCS1 Padding
  * 2- RSA OAEP Padding
* **Key** _\<string> -_ Fill with a String, Control or Variable. **PublicKey** must be provided in X509Encoded format encoded in Base64 (with no headers/footers).

:::info
For more information see Android documentation:\
[https://developer.android.com/reference/java/security/spec/X509EncodedKeySpec](https://developer.android.com/reference/java/security/spec/X509EncodedKeySpec)
:::

* **Key Size** _\<numeric> -_ Default value: 2048
