hello everyone,
I have implemented RSA algorithm in java but now i am asked to determine the time for encrypting variable length messages(plain text). As an example, i have to find the time in which input message of length 3 will get encrypted, similarly the time in which input message of length 7 will get encrypted so that i can make comparisons. So please help me in determining that which software i can use for it?
adil_bashir
-7
Junior Poster in Training
Recommended Answers
Jump to Postive seen a thread about the same kind of problem go by on thsi very forum earlier this week, let me find it and refer it to you.
you will not need any other software, just 3-4 extra lines of code.
Jump to Posthello everyone,
I have implemented RSA algorithm in java but now i am asked to determine the time for encrypting variable length messages(plain text). As an example, i have to find the time in which input message of length 3 will get encrypted, similarly the time in which input message …
Jump to Postaight well i couldnt find the thread i saw this week about it but i found one from 2 years ago which talks about the same thing, check this out
Jump to Postcouldnt you use the
System.currentTimeMillis();
to get the time before the statement/method executes and get the time when it returns, minus the 2 and you will have the time it took to execute the method/statement?:
long startTime = System.currentTimeMillis(); //method/statement call long stopTime = System.currentTimeMillis(); long elapsedTime …
Jump to Postthat is exactly what the other thread i saw this week and the one i linked suggested, i was just trying to minimize replication :P
was it this thread:http://www.daniweb.com/software-development/java/threads/414879 i was going to just post the link but thought maybe id rewrite the code :D
All 17 Replies
Philippe.Lahaie
42
Posting Whiz in Training
adil_bashir
-7
Junior Poster in Training
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
Philippe.Lahaie
42
Posting Whiz in Training
Philippe.Lahaie
42
Posting Whiz in Training
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
adil_bashir
-7
Junior Poster in Training
adil_bashir
-7
Junior Poster in Training
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
adil_bashir
-7
Junior Poster in Training
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
adil_bashir
-7
Junior Poster in Training
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
adil_bashir
-7
Junior Poster in Training
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
adil_bashir
-7
Junior Poster in Training
DavidKroukamp
105
Master Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.