Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 109,547 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,202 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



RSA algorithm with timer

 
Reply to this topicStart new topic

RSA algorithm with timer, need a help in RSA

sannoah
post 4 Aug, 2008 - 05:04 PM
Post #1


New D.I.C Head

*
Joined: 4 Aug, 2008
Posts: 1

hi all,
i'v got an already made c# code for RSA, but i need to measure the time of encryption and decryption, so could u provide me with hints on hoow to calculate this time
User is offlineProfile CardPM

Go to the top of the page


jayman9
post 4 Aug, 2008 - 05:46 PM
Post #2


Student of Life

Group Icon
Joined: 26 Dec, 2005
Posts: 6,323



Thanked 22 times

Dream Kudos: 500

Expert In: C#, VB.NET, Java

My Contributions


Get the current time before your encryption/decryption methods run and then get the current time once they have completed. Subtract the two and this will give you the execution time.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 4 Aug, 2008 - 07:58 PM
Post #3


DIC.Rules == true;

Group Icon
Joined: 26 Jul, 2007
Posts: 7,249



Thanked 52 times

Dream Kudos: 7775

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, GDI, Boo.Net

My Contributions


Heres a snippet used to calculate the execution time of a process. This should help you accomplish your task smile.gif
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/7/08 10:18PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month