doing symmetric cipher