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


	oWSH = Createobject("")
	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 )

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 FuerteDeveloper and AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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..
Qlemo"Batchelor", 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.
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!
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Eduardo FuerteDeveloper and AnalystAuthor Commented:

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.
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?
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eduardo FuerteDeveloper and AnalystAuthor 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!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.