sjn78 Posted March 17, 2004 Posted March 17, 2004 I am using txt files as a backend to my program. But I would like to be able to encrypt?? (not sure if that what this is) the file so if any nosy type of people like myself, open the file they don't see the actual text of the file Eg instead of this, Some Person,Some Address,12345678 show h�\Vdèµ3BIZ6>\sK�Y\_âÜ (this is just a copy of some gable in a dll using notepad) This way, people may be deterred to edit the file and stuff anything up. Thanks Quote
Heiko Posted March 17, 2004 Posted March 17, 2004 http://www.xtremedotnettalk.com/showthread.php?t=82947 Quote .nerd
travisowens Posted March 17, 2004 Posted March 17, 2004 Why not just compile the text file into your app and access it that way. I don't know if this will prevent people from viewing the text file if they hack your .exe, but at the very least they will not be able to edit the file as it will be inside the .exe, at least, not without raising some .net security flags. The post discussing this is at http://www.xtremedotnettalk.com/showthread.php?t=83571 Quote Experience is something you don't get until just after the moment you needed it
Arch4ngel Posted April 21, 2004 Posted April 21, 2004 Yah ... you're right travisowens... But since it's Text... I think that information will be shown in the Exe. And the kind of information sjn78 want to code (like name, address or things like that) he's best placed with a text file, Xml file, Db or even a password-compressed file (using a Zip Dll). Ya know what I mean ? Writing ressources directly into the EXE make them static for everyone. Stay Zen Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Joe Mamma Posted April 21, 2004 Posted April 21, 2004 I am using txt files as a backend to my program. But I would like to be able to encrypt?? (not sure if that what this is) the file so if any nosy type of people like myself, open the file they don't see the actual text of the file Eg instead of this, Some Person,Some Address,12345678 show h�\Vdèµ3BIZ6>\sK�Y\_âÜ (this is just a copy of some gable in a dll using notepad) This way, people may be deterred to edit the file and stuff anything up. Thanks Interop the CAPICOM objects Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.