Add a new method to setup encryption