Encrypting string in config file
Posted: Wed Dec 10, 2014 9:58 am
I am installing a .NET program that has database credentials. I want to encrypt the password within the config file for obvious reasons.
I don't see a great way to do this from installaware though. I have a dialog that gets the database information from the user, and that works just fine, populating the $PASSWORD$ variable that i create.
I can't seem to run a program to do the encryption, because there is no way to return the data back (I can only return the exit code, not output). I do not know enough about C++ to generate a native DLL (and I'm not sure that would work anyway).
I really just want to call a program and get a string back, then I can create the config file by the "Write text to file" installaware command.
Any ideas?
I don't see a great way to do this from installaware though. I have a dialog that gets the database information from the user, and that works just fine, populating the $PASSWORD$ variable that i create.
I can't seem to run a program to do the encryption, because there is no way to return the data back (I can only return the exit code, not output). I do not know enough about C++ to generate a native DLL (and I'm not sure that would work anyway).
I really just want to call a program and get a string back, then I can create the config file by the "Write text to file" installaware command.
Any ideas?