simple text file encrypt - Forum
Welcome To Expl0its Saturday, 12.03.2016, 9:41 AM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum moderator: iCryptic 
Forum » Coding Tutorials » C++ & C# » simple text file encrypt (encrypter)
simple text file encrypt
iCrypticDate: Saturday, 10.09.2010, 10:27 AM | Message # 1
Secondary Poster
Group: Administrators
Messages: 31
Awards: 3
Reputation: 500
Status: Offline
CODE: int main(int argc, char *argv[])
{
FILE *t,*s;
char ch;
if((s = fopen(argv[1],"r")) == NULL || (t = fopen(argv[2],"w")) == NULL){system("pause");exit(1);}
while((ch = getc(s)) != EOF){putc(~ch,t);}
fclose(s);
fclose(t);
return 0;
}

how to use :
open cmd.exe , go to where is pro and type
start mypro.exe yourtextIN.txt yourtextOUT.txt

Enjoy smile

 
Forum » Coding Tutorials » C++ & C# » simple text file encrypt (encrypter)
Page 1 of 11
Search:

Copyright MyCorp © 2016 Site managed by uCoz