Re: Two different RsynCrypto scenario's
Brought to you by:
thesun
From: Shachar S. <sh...@sh...> - 2010-04-13 09:21:22
|
Jan Alphenaar wrote: > > Hi, > > > > 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. Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com |