Fixed C++ encryption and Fixed #3 key outputs to file