Adding the enc/dec using service functionality to the lib