2. Hands-on of using CrypTool
- Open CrypTool
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-20-1024x772.png)
2. First, we’ll create RSA keys. Click on PKI >Generate keys.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-21.png)
3. Select the RSA algorithm, with a bit length of 1024.
4. Enter the details for the key pair to be created. They are the public and private key pair.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-22.png)
5. Click on Generate key pair.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-23.png)
6. Click on “Show Key Pair” to see the key pair and the associated public certificate. The public certificate of the key pair is shown below.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-24.png)
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-25.png)
RSA encryption:
- Click on Encrypt > Asymmetric >RSA encryption.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-26.png)
2. Choose the previously created key and click on Encrypt.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-27-1024x566.png)
Encrypt text
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-28.png)
To decrypt:
- Click on Decrypt > Asymmetric >RSA decryption.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-29-1024x296.png)
2. Select the key pair to be decrypted and provide the key used during generation.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-30.png)
3. Click on decrypt.
![](https://blog.mhasin.eu/wp-content/uploads/2020/09/image-31.png)