Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Experience is something you don't get until just after the moment you needed it
  • 1 month later...
Posted

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

"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

Posted
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

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...