Accidently encrypted a file in vi
am 23.10.2007 22:48:31 von onestatusquo
Greetings
On Solaris 10, I was vi'ing a file and had my caps lock key on.
I hit :X and was prompted for the password.
I then hit Escape and from then I think I saved the file with
regular :x
However, when I try to vi the file, all I get is garbage - it's
encrypted.
Any idea how to recover it?
I tried vi -x filename and then enter which doesn't
work.
Re: Accidently encrypted a file in vi
am 23.10.2007 22:59:32 von Janis Papanagnou
SQ wrote:
> Greetings
>
> On Solaris 10, I was vi'ing a file and had my caps lock key on.
>
> I hit :X and was prompted for the password.
>
> I then hit Escape and from then I think I saved the file with
> regular :x
>
> However, when I try to vi the file, all I get is garbage - it's
> encrypted.
>
> Any idea how to recover it?
>
> I tried vi -x filename and then enter which doesn't
> work.
I don't see a chance to break the encryption; it's the purpose of
encryption to not be able to simply decript it without key.
My approach in case of such an accident would have been to try to
recall the character sequence I typed.
Janis
Re: Accidently encrypted a file in vi
am 24.10.2007 15:40:30 von onestatusquo
On Oct 23, 4:59 pm, Janis Papanagnou
wrote:
> My approach in case of such an accident would have been to try to
> recall the character sequence I typed.
>
> Janis
Amazingly, I was able to do it, I hit the escape key several times
(which is what my encryption "key" was)
and got back the file...
Be careful with :X in vi....