Could you point the better way to ensure a Wordpad content, by encryption or password ?

Hi Experts

Could you point the better way to ensure a Wordpad content, by encryption or password ?

Also, what is the better way to do that?

By the way the file is opened by a VFP application

LOCAL oWSH

try
	oWSH = Createobject("wscript.shell")
	oWSH.Run(lcOutputFile, 2, .T.)

Catch To oErr
	oErr.UserValue = "Nested CATCH message: Unable to handle"
	=ALERT("PARE", "OK", 10, 10, "Wordpad não pode ser executado. Erro:"+oErr.Message )
Endtry

Open in new window


Any suggestion on decrypyt before it's opened and then after it's saved, is it a good approach?


Thanks in advance
Eduardo FuerteAsked:
Who is Participating?
 
pcelbaCommented:
If you are working in FoxPro then you may encrypt the whole file by vfpencryption.fll library or compress it to ZIP by vfpcompression.fll with password protection.

Your application then must either unzip the file with known password or decrypt the file and save it to a temp folder where you can open it by WordPad or whatever software is necessary.

Of course, this way of protection does not mean 100% reliability. Experienced user can read the decrypted file from temp folder or even save it to a different location from the WordPad directly, FoxPro applications are also hard to protect against decompilation etc. etc.

Both my and ste5an's recommendation can make the "hacking" process harder but not impossible.
0
 
ste5anSenior DeveloperCommented:
Could you point the better way to ensure a Wordpad content, by encryption or password ?
There's no secure way to do that.

Maybe you should rephrase your question. Context, use-case, goals..
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Main issue is that you have to create a plain text file tobe able to edit it with most editors. The clipboard could be used to paste content into the editor, but there is no trigger to know when the application should take over the changes, and there might be size limitations.

As stated by st5an, context is missing to be able to provide something useful.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
Blue Street TechLast KnightCommented:
Hi Eduardo,

Could you point the better way to ensure a Wordpad content, by encryption or password ?
Encryption is always more secure than a password.

I'm not sure what your are asking beyond that.

Let me know if you have any questions!
0
 
Eduardo FuerteAuthor Commented:
Sorry.

To be  clearer.

My concern is about Wordpad text content's confidenciality since its  has personal informations (the use of Wordpad was estabilished since not all the PC stations have a Word licence).

So if someone have the rights - login/ password/ access level to enter a VFP app (just to inform the language maybe it could help someway, but that's not the core point), from inside it  he have access to call Wordpad, to read and maintain the text, after that save it's content.

If someone outside the app try to open the file directly with Wordpad it's denied and can't read and change anything.

That's the goal.
0
 
ste5anSenior DeveloperCommented:
a) Use NTFS permissions. Just place the files you want to open in an accordingly setup folder.
b) Don't work with files. Open Wordpad and paste the content into it.

But: What has Word to do with it and why don't you the same problems here?
1
 
Eduardo FuerteAuthor Commented:
Pcelba's  zipping by using VFPcompression with password fits very well my needs at the moment, on a reasonable security level, deletung the .doc after zipping is done.

To give permissions on the folders maybe on a next step NTFS maybe could be adopted also.

Just to clarify why I mentined Word at begining , just to know of a possible app that encrypt it's contents when the file is salved.

Thanks for the help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.