You mean, it would prefix the data in the stream? (It can't be inside the
encrypted stream if you need the salt to decrypt it.)
It would be a good idea to ask a cryptographer about any fancy
non-standard plans. I'm worried that any enhancements us mere mortals
can come up with are either already well known, and incorporated in some
good crypto algorithm, or known to weaken the crypto algorithm.
Hmm.
Right, but this still assumes that the salt / the seed for the random
numbers generator is known by the system (stored somewhere), but kept from
the user / attacker. That will not help against an attacker that gains
root and/or physical access.
(There is also an active console cracking scene, which indicates that even
if you have very smart people, and lots of money to spend on custom
hardware designed specifically not to give up its secrets, this is a hard
problem.)
And if you are only guarding against non-root users, you might be able to
acheive the same thing more simply. The "salt" in the above description
sounds more like a secret part of the en/decryption key; instead you might
just pick a longer encryption key, equal to the lenghts of the two
separate keys. (And by the way, isn't this exactly the "trick" that made
Windows NT passwords so bad?)
MAgnus