A small problem about encryption

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
GAGATOSHUT
Posts: 4
Joined: 10 Dec 2015 06:55

A small problem about encryption

#1 Post by GAGATOSHUT » 12 Dec 2015 08:31

Hello, guys
I come from China
There is a problem difficult to handle
The batch file can right click edit and view the contents inside
now
I don't want to let other users to view the contents inside
Is there any way I can achieve this function
Maybe the question is too difficult for me
But the network is strong, I need your help
Because if someone is trying to modify the content of the inside, this is not good
Thank you for your help

from GAGATOSHUT :cry: :cry:

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: A small problem about encryption

#2 Post by foxidrive » 13 Dec 2015 02:59

You can change the file attribute to read-only to stop it being changed, but it's trivial to remove that attribute.
You can place it on a cdrom, to stop it being changed.

If you want to hide what is inside, then give it a different extension, such as .exe and then only you will understand that it has to be opened in Notepad for example.

The exact detail of what the file is, and where it is, and the situation where it is being accessed - will give me and other readers a better idea of how to help you.

GAGATOSHUT
Posts: 4
Joined: 10 Dec 2015 06:55

Re: A small problem about encryption

#3 Post by GAGATOSHUT » 13 Dec 2015 05:27

Such as user run this batch script
Run successfully
but
I don't want the user can see the content of the script
Also is unable to view or edit
The script can run only, the content can be garbled
The contents of the can encrypt the script
Can complete this function ?????

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: A small problem about encryption

#4 Post by foxidrive » 13 Dec 2015 05:41

For a batch file you can use a batch file compiler - it hides the code inside a .exe executable but it is not secure, as the batch script is recreated in a temporary folder to run, and is then deleted when it is finished.

People who are aware of this can locate the file and get access to the original batch script.

Post Reply