tracking time of encryption

  • Thread starter Thread starter Bruce H
  • Start date Start date
B

Bruce H

Hello,

I'm able to encrypt a file with Rijndael (about 40 MB).

Because it takes a little while, is it possible to display a progressbar
that displays the duration while encryption or decrypting?
How can I know how long the function of the framework is taking?

Thanks.
 
I don't think a progress bar would be very good in this situation (Because I
don't think you can get a determined amount of time from the crypto api).

You could use the Windows splash screen type of "progress bar" which is
nothing more than an AVI. Look in your visual studio directory under
program files, you'll see there are a bunch of AVI's you can use (I don't
know what licensing they fall under, but I *think* you can use them).

Just run that on a second thread and monitor your other thread thats doing
the encrypting giving your users that "working" feeling. =)

HTH,
CJ
 
* "Bruce H said:
I'm able to encrypt a file with Rijndael (about 40 MB).

Because it takes a little while, is it possible to display a progressbar
that displays the duration while encryption or decrypting?
How can I know how long the function of the framework is taking?

I think, you can't, but you can display a marquee style progress bar:

<URL:http://groups.google.de/[email protected]>
 
Back
Top