Syntactic Confectionery Delight | |
PerlMonks |
Re: Storing credentials in a cross-platform binary file?by missingthepoint (Friar) |
on Sep 12, 2008 at 03:06 UTC ( [id://710788]=note: print w/replies, xml ) | Need Help?? |
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. email: perl -e 'print reverse map { chr( ord($_)-1 ) } split //, "\x0bufo/hojsfufqAofc";'
In Section
Seekers of Perl Wisdom
|
|