marinb
7 years agoContributor
Using Project/ProjectSuite password variables in other places than SetText or Keys
So we wanted to make our test data a bit more secure an decided to move the login password strings to the project variables and make it a password, so that it is encrypted and not hardcoded in our sc...
- 7 years ago
Here's what we use:
function getDBConnectionString(){ return 'MultiSubnetFailover=True;Provider=SQLOLEDB.1;Persist Security Info=False;Database=' + SMF.SQLUtilities.databaseName + ';Server=tcp:' + SMF.SQLUtilities.SQLServerName + ',1433;User Id=testcomplete;Password = ' + Project.Variables.SQLpassword.DecryptedValue; }
It doesn't actually decrypt into plain text on screen, it just passes the Decrypted value through. No where does that actual value get exposed unless I were to write that string out to a log or something.