in reply to Storing credentials in a cross-platform binary file?
I'd recommend encrypting the whole file for the security benefit. If you encrypt individual parts of file separately, you make it easier to break the encryption. Of course, this may not be an issue, depending on your definition of 'easily recoverable'.
If the whole file is encrypted then it's indeed binary, and not likely to be fiddled with.
If you do encrypt the whole file, you may have issues using SQLite. I could be wrong, but I think SQLite require a disk file to operate on. If you decrypt an encrypted SQLite database file and write a temporary plaintext version to disk, you render all the encryption pointless.
With all that in mind, I think the best solution is what moritz suggested: use YAML or Storable and encrypt the whole file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Storing credentials in a cross-platform binary file?
by tilly (Archbishop) on Sep 12, 2008 at 03:46 UTC | |
by missingthepoint (Friar) on Sep 12, 2008 at 04:16 UTC | |
by tilly (Archbishop) on Sep 12, 2008 at 05:51 UTC | |
by missingthepoint (Friar) on Sep 14, 2008 at 14:41 UTC | |
by tilly (Archbishop) on Sep 15, 2008 at 05:53 UTC |