Make up a program, I use vb.net interface. There are five textbox text data to save, save into what kind of format or encryption methods, can we make this five data cannot be open with notepad, can only use my own generated exe file open, after opening, in accordance with the original display way in textbox. Text inside,
CodePudding user response:
Save the problem is that a custom suffix
CodePudding user response:
reference 1st floor xxxxing response: save problem is a custom suffix Save the file with a custom suffix CodePudding user response:
Saved as text files, suffix custom can also, but forced to use notepad to open or can display content CodePudding user response:
reference 1st floor xxxxing response: save problem is a custom suffix Saved as text files, suffix custom can also, but forced to use notepad to open or can display content CodePudding user response:
Coding format change CodePudding user response:
Drills: in Visual Basic for string encryption and decryption CodePudding user response:
Save a stream file, rather than a text file, CodePudding user response:
For reference only # include & lt; Stdio. H> #include #include The FILE * fi * fo; int i; Int main (int arg c, char * * argv) { If (argc<3) { Usage: printf (" % s \ n "SRC des, argv [0]). return 1; } If (0==stricmp (argv [1], argv [2])) { Printf (" Src and des is the same! \n"); Return 2; } Fo=fopen (argv [2], "wb"); If (NULL==fo) { Printf (" Can not create the file % s \ n ", argv [2]). Return 3; } Fi=fopen (argv [1], "rb"); If (NULL==fi) { The fclose (fo); Printf (" Can not find the file % s \ n ", argv [1]). The return of 4; } I=0; Fseek (fi, 1 l, SEEK_END); While (1) { Fputc (fgetc (fi) ^ 0 x5a, fo); i++; If (I %==0 1000000) cprintf (" \ r % dKB, "I/1000); If (fseek (fi, - 2, SEEK_CUR)) break; } The fclose (fi); The fclose (fo); Cprintf (" \ r % dKB OK. \ r \ n ", I/1000); return 0; } CodePudding user response:
refer to 6th floor Tiger_Zhao response: drills: in Visual Basic for string encryption and decryption Tried the encryption to decrypt, don't show the original text, is to open notepad can identify or content, how to make it open is the code? CodePudding user response:
I do down here is correct, CodePudding user response:
The references to the tenth floor Tiger_Zhao response: I do down here is correct, Make not that kind of special symbols and gibberish, just change the different characters, CodePudding user response:
That is more simple: remove the Base64 conversion, direct access to an array of bytes,