I know both of the scenario's are supported, but I was just wondering if one is better then the other.
Van: Shachar Shemesh [mailto:email@example.com]
Verzonden: dinsdag 13 april 2010 11:21
Aan: Jan Alphenaar
Onderwerp: Re: Two different RsynCrypto scenario's
Jan Alphenaar wrote:
I was just wondering if there was any difference in the level of encryption for the two following scenario's.
In the first scenario I generate a certificate and a key. Encryption is done with the certificate and decryption is done with the key. See these commands directly below.
openssl.exe req -days 35600 -newkey rsa:1536 -keyout cert.key -nodes -x509 -out cert.crt -config openssl.conf"
rsyncrypto test_clear.txt test_enc.txt test.key cert.crt
rsyncrypto -d test_enc.txt test_clear.txt test.key cert.key"
In the second scenario I only generate an RSA key and both encrypt and decrypt the files with this key. See the commands directly below.
openssl.exe req -days 35600 -newkey rsa: 1536 -keyout private.key -nodes -config openssl.conf"
rsyncrypto test_clear.txt test_enc.txt test.key private.key"
rsyncrypto -d test_enc.txt test_clear test.key cert.key"
If you still have the symmetric key (test.key) around,
you can also decrypt using the certificate (cert.crt).
All of the above are supported. I'm not sure what the question is.
Lingnu Open Source Consulting Ltd.