View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:56 PM
Fred
Posts: n/a
Do your own homework, dude. I'll give you a little hint.

#include <fstream>
using namespace std;

int main()
{
ifstream infile("indata.txt", ios::in | ios::binary);
ofstream outfile("outdata.txt", ios::out || ios::binary);
char temp;

while(infile)
{
infile.get(temp);
__asm
{
mov bl, temp
rol bl, 3
mov temp, bl
}
outfile.put(temp);
}

infile.close();
outfile.close();
}

That's the encryption part. use ror operator for decryption part. good luck.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!