Advertisement
xakzi

decryption windows form app c++

Sep 26th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. char ch,mod;
  2. char key = 97;
  3. ifstream fin("Encrypted.txt",ios::binary);
  4.     if(!fin)
  5.     {
  6.         MessageBox::Show("Couldn't open file : Encrypted.txt");
  7.     }
  8.    
  9.     while(fin.get(ch))
  10.     {
  11.         if(ch==EOF)
  12.         break;
  13.         mod = ch + key;
  14.         if (mod < 0) mod +=256;
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement