개인키 = 100 {{{~cpp //5 //5+2 = 7 //7+(10-2)= 15 = 5 #include #include using namespace std; int main() { ifstream fin("source.txt"); ofstream fout("output.txt"); ofstream fout2("result.txt"); char array[100]; int count=0; for (int i=0 ; !fin.eof(); i++) { //fin >> array[i]; array[i] = fin.get(); count ++; } int key=100; //암호화 작업.. for (i=0; i 101 +156 ->257%256 ->1 int open_key; cout<<"공개키 : "; cin >> open_key; for (i=0; i