[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A question on encryption
From: |
Marcin Borkowski |
Subject: |
Re: A question on encryption |
Date: |
Thu, 28 Aug 2014 08:30:59 +0200 |
Dnia 2014-08-28, o godz. 05:14:04
David Hume <David.Hume@hushmail.com> napisaĆ(a):
> Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
>
> > I created a test file (call it "test") with a single line of text
> > and did two things:
> >
> > 1. C-x C-f test RET, C-x C-w test.gpg RET
> >
> > Then I selected the key and hit ok.
> >
> > 2. From the command line:
> > gpg -e -r key-id -o test2.gpg test
> >
> > The two resulting files were different (difference in length of 3
> > bytes; find-file-literally and manual inspection showed that the
> > beginnings were identical, but the endings were not).
> >
>
> If you encrypt the same file twice, you don't get the same encrypted
> file. I think gpg will add random data to the end of the file. You
> could test that theory by encrypting the same file twice using your
> command line gpg. I am pretty sure I have done that in the past and
> observed that I did not get the same encryption twice.
Good point, that is true (which I've just checked experimentally) -
thanks for pointing that out! But - the *size* remains the same
(well, it did 4 times, at least). And with CLI gpg versus EPG, I also
get *consistently* differences in length (by a few bytes)!
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University