Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 26th, 2011, 10:27 AM
Zatara27 Zatara27 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Posts: 5 Zatara27 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 38 sec
Reputation Power: 0
512 bit length key consumes more time than 1024

hi there,

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..

and

when i'm trying to encrypt same file with RSA 1024 bit encryption key it needs 22 seconds for encryption...

is it normal?

Reply With Quote
  #2  
Old December 26th, 2011, 04:31 PM
christopherx christopherx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Posts: 11 christopherx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 54 sec
Reputation Power: 0
Quote:
Originally Posted by Zatara27
hi there,

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..

and

when i'm trying to encrypt same file with RSA 1024 bit encryption key it needs 22 seconds for encryption...

is it normal?


Haha.. no that is not normal. What implementation of the RSA algorithm are you using? Some algorithms, like RSA 1024 bit, will have optimisations.

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

Reply With Quote
  #3  
Old December 28th, 2011, 07:28 AM
Zatara27 Zatara27 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Posts: 5 Zatara27 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 38 sec
Reputation Power: 0
Quote:
Originally Posted by christopherx
Haha.. no that is not normal. What implementation of the RSA algorithm are you using? Some algorithms, like RSA 1024 bit, will have optimisations.

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


actually i made tests like this:

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

Reply With Quote
  #4  
Old December 29th, 2011, 03:46 PM
christopherx christopherx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Posts: 11 christopherx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 54 sec
Reputation Power: 0
I see..

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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > 512 bit length key consumes more time than 1024

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap