December 26th, 2011, 10:27 AM
512 bit length key consumes more time than 1024
i ve got a strange situation:
when i'm trying to encrypt file (10 mb size) with RSA 512 bit encryption key, it needs about 1 minute for encryption..
when i'm trying to encrypt same file with RSA 1024 bit encryption key it needs 22 seconds for encryption...
is it normal?
December 26th, 2011, 04:31 PM
Haha.. no that is not normal. What implementation of the RSA algorithm are you using? Some algorithms, like RSA 1024 bit, will have optimisations.
Originally Posted by Zatara27
If I were you I would construct a proper test, run a sequence of different files through the two algorithms and log the times taken. Make a graph of it, and you'll be able to discern a pattern. It might be the case that this file fits one of the optimisations very well. And if it turns out 1024 bit encryption is quicker, just enjoy it! All the more security for you
December 28th, 2011, 07:28 AM
actually i made tests like this:
Originally Posted by christopherx
created 5 different files with different size...
also i included in this application time option..
which calculates how much time did it consume on encryption process...
when i m encrypting file with 512 bit key length it needs 10 seconds
and with 1024 bit key length it needs 5 seconds.
in this case file size is 2.5 mb
December 29th, 2011, 03:46 PM
and what language are you using? Is it your own version of the RSA algorithm or is it a package that came with the language?