minimal changes to update to chef 11.x - needs feature expansion

This updates the encrypt/decrypt function to the chef 11.x codebase