This is developer friendly module which will used for Encryption/Decryption data based in the Key & Encryption profile.
Download the module and extract it to the modules directory. Install it as any Drupal contributed module.
Configure/Setup all the dependent modules as per there installation instructions.
Inject the below service in your module for custom usage: