0

I have a Windows batch file which runs periodically to update data on my MySQL database. I now want to make the batch file secure so that no-one can see the password used to connect to the database. I have thought of two potential solutions:

  1. Encrypt the password in the batch file

  2. Encrypt the entire file.

Id prefer to go with option 1. Is there a quick method to encrypt a password which can be used in a batch file?

1 Answer 1

2

Only encrypting the password just moves the problem to how you secure the decryption key.

If you're on NTFS you should secure the whole file instead. On the file properties encryption is accessed by the Advanced... button under Attributes, and access controls are on the Security tab.

Sign up to request clarification or add additional context in comments.

2 Comments

The checkbox for encryption is greyed out. I think i need the Pro edition of XP to do that. Are there any alternatives?
@Santiago - Using the access controls would be sufficient, provided both your user account and hard drive are also secure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.