allows user to turn on and off encryption