Re: [Duplicity-talk] symmetric key, or public gpg key?
From:
Chris Poole
Subject:
Re: [Duplicity-talk] symmetric key, or public gpg key?
Date:
Tue, 20 Oct 2009 13:48:38 +0100
Thanks.
I've tried both encryption methods with my home directory. It contains a load of photos, pdfs, text files, etc. Pretty typical.
Both symmetric and asymmetric encryption took almost the same amount of time (about 1.5 hours). There was only a few minutes in it, but the symmetric run had an extra 200MB or so to encrypt.
So basically, the same. Clearly not a bottleneck, as said above.
Chris
On Mon, Oct 19, 2009 at 8:23 PM, <address@hidden> wrote:
Just tried it ... and here are the results and the used script..
created a 2048bit key with a 24char password which was also used for
the symmetric encryption. Looks like keys are slightly faster in
encrypting, decrypting seems comparable. Repeated runs had similar
results. The difference is marginal considered a test object of over
256Megs.
RESULTS:
address@hidden:~> ./gpg_test.sh
524288+0 Datensätze ein
524288+0 Datensätze aus
268435456 bytes (268 MB) copied, 5,29084 seconds, 50,7 MB/s
enc with key
real 0m12.396s
user 0m10.982s
sys 0m1.096s
dec with key
real 0m18.475s
user 0m15.488s
sys 0m2.253s
enc with pass
real 0m15.150s
user 0m12.324s
sys 0m1.443s
dec with pass
real 0m18.073s
user 0m15.640s
sys 0m2.035s
SCRIPT
is attached
.... ede
On 19.10.2009 19:49, Kenneth Loafman wrote:
Sorry, missed one of the questions... Encryption is covered by gpg directly.
...Ken
Kenneth Loafman wrote:
Duplicity is primarily IO bound, so I've never actually timed the
difference. I imagine that unless you had an extremely old or slow
processor, it would not be that much difference.
...Ken
Chris Poole wrote:
Thanks.
I assume the encryption stuff is handled with gpgme or something; it's
not actually your own encryption code?
Also, do you know if a symmetric key would perform faster than using a
public key?
Chris Poole
On Mon, Oct 19, 2009 at 2:01 PM, Kenneth Loafman <address@hidden<mailto:address@hidden>> wrote:
Chris Poole wrote:
> Hi,
> I had planned to just use my gpg key for encryption.
>
> Now I'm wondering, will performance be better with a symmetric key?
>
> Even when I use my public key, it still asks for me a passphrase
anyway.
The current bzr version has the fix for this and it will be in 0.6.06.
When adding the cache-sync part of the code I made it always ask for a
password (not good). Now it does not unless it needs to sync the cache.
I will try to get 0.6.06 out later this week.
...Ken
_______________________________________________
Duplicity-talk mailing list
address@hidden<mailto:address@hidden>http://lists.nongnu.org/mailman/listinfo/duplicity-talk