Refactored existing code and added support for symmetric encryption.

`// A Service can be used to...`