0

I have ant file with many variables having password values hardcoded, so basically anyone having access to that file can see all the passwords and usernames. I want to know if there is any way to hide the hardcoded password from .xml? Thank for the help in advance!

Samkeith
  • 55
  • 1
  • 8
  • See: http://stackoverflow.com/questions/7503630/where-do-i-put-my-credentials-when-using-ivy-and-a-private-company-repository/7505364#7505364 – Mark O'Connor Apr 20 '15 at 06:59

2 Answers2

0

No, but you can restrict the permissions of the file to the user that actually executes the application. This will restrict the file to a select number of users.

Travis Sharp
  • 821
  • 11
  • 26
0

Well presumably you don't actually need to store the password, you just need a hash you can test against. Make sure it's salted (and the salt isn't stored in the file) and the file itself has the proper rights (ie as few people as possible have access to it) and that's pretty much all you can do.

Blindy
  • 65,249
  • 10
  • 91
  • 131