update cipher.cpp with reading from a input file and writing to a output file for encryption and decryption of each cipher