Add the dependance from the component.
Two methods are there :
1. For Encrypt
2. For Decrypt
Key is being passed from site property.
The key which you will create a Base64 , should be more the 8 characters in it. Otherwise it will throw the exception.