2016-11-18 2:04 GMT-03:00 Jeff Gray <j...@rogerthedog.com>:
> I'm playing around with Garage. Initially it was easy to get a connection to
> MySQL and return some rows, so I'm looking forward to using it.
>
> Where would you typically keep a connection string, considering it also
> includes a password?
> An ini file? That seems rather old school :-)
> Or is there a better way than just storing a string?

You could use an external STON [1] or JSON [2] file to store the
configs. I use the latter.

You could symmetrically encrypt the whole file or just the password
field. Or leave it in plain text where only the OS user can read it.

Regards!

[1] https://github.com/svenvc/ston
[2] https://github.com/svenvc/NeoJSON

Esteban A. Maringolo

Reply via email to