in reply to Storing credentials in a cross-platform binary file?

Additionally, I'd like the files to be binary to discourage casual browsing/modification from other team members who might fiddle with the file with good intentions but not understanding what they're doing.

I thought that file was encrypted anyway? If so, the obfuscation is really superfluous.

Or do you want to encrypt the passwords in that file, but not the file itself?

I assume that the credentials file isn't very large. If that's true, you can store your login informations in something as simple as YAML or Storable, encrypt the whole thing and dump it to disk. In the other directory you read and decrypt it, and let your de-serializer handle that string.

  • Comment on Re: Storing credentials in a cross-platform binary file?

Replies are listed 'Best First'.
Re^2: Storing credentials in a cross-platform binary file?
by Anonymous Monk on Sep 11, 2008 at 20:54 UTC
    OP here: my original thought wasn't to necessarily encrypt the whole file, rather to just encrypt the individual passwords before writing them to the file. This would leave the file open to casual editing/browsing (even though the PWs are encrypted) if it's a text file. However using a serializer and encrypting the resulting output is an angle I hadn't considered - I'll explore that.. Thanks!