How to secure my connection string? powershell + xml -
I store my connection string in the XML file. So I use it in script with powers, is there any way to encrypt it / encryption in any way?
I have seen two methods to encrypt in parsers
s Only the Windows ID should be noted that it encrypts the original string, can decrypt it (because it uses a Windows login as the key)
with a pass phrase of the function Use
The limitations of the first method, I use the second, then I am Oded connection string would be stored in a SQL table and will lock down permissions. To make connections I will retrieve the connection string from the SQL table and decrypt using the pass phrase.
Comments
Post a Comment