On Tue, Aug 10, 2010 at 06:13:11PM -0400, Thomas Dickey wrote:
On Tue, 10 Aug 2010, Chris G wrote:
I have some files which I access using 'vile -k <passwd> <filename>',
I've just moved from vile 9.7za to vile 9.8 and the encrypt/decrypt
isn't compatible. I.e. my files that were created using vile 9.7za
were not decrypted correctly using vile 9.8.
After having a minor panic I installed vile 9.7s (the default Ubuntu
version) and that decrypted my files OK.
However I thought it would be worth reporting the issue.
Actually, that appears to be referring to a fix:
20100405 (zc)
+ change type in vl_setup_encrypt() to "int", to make this 32-bits for
32- and 64-bit platforms, needed to make the algorithm work with
64-bits. The original "long" was needed for 16-bit systems.
...but I didn't address migration from the old files to the new.
Without the fix, files created on a 32-bit system wouldn't decrypt
on 64-bit systems, and vice versa.
.... but mine were both 64-bit builds of vile (see my second post).
Ah, but I see, you changed the type in 9.7zc so that anything
encrypted before 9.7zc wouldn't decrypt correctly in versions from
there on.
Regarding migration, it seems that vile-crypt (the external program) uses
the original uemacs algorith. But it wouldn't be hard to add an option to
that, to allow one to use it for a migration utility.
It's not a huge issue, I can decrypt my files with the old (9.7)
version of vile and then re-encrypt them with the new version.