Hi Maryam LAQLII,
You can use the Java action Base64encode and Base64decode for encryption and decryption.
These java actions are available in Community commons folder.
This Community commons can be imported from Market module.
Please check the below configurations.
Hope this helps!