473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

tracking time of encryption

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.
Nov 20 '05 #1
4 847
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" <Br****@nospam.com> wrote in message
news:e3**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 20 '05 #2
* "Bruce H" <Br****@nospam.com> scripsit:
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/groups?selm=uX12SU7VDHA.1784%40TK2MSFTNGP10.phx.gb l>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
marquee, that was the word I was looking for. =)
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c6************@ID-208219.news.uni-berlin.de...
* "Bruce H" <Br****@nospam.com> scripsit:
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/groups?selm=...2MSFTNGP10.phx
..gbl>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #4
Hi Bruce,

Armin did make a great solution for that, however I do not know how long he
holds that zip file on his site so be quick.

http://tinyurl.com/yv7ak
Cor
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: marslee | last post by:
I am a php newbie. I would like to count how many times a user visit a webpage. I know session tracking should be used, but where i put the code? Is it inside the html that the user visit? ...
6
by: Tran Tuan Anh | last post by:
Hi all, I am new to Python and desperated to look for a good Python debugger. I mean a debugger with source coding tracking. For C/C++, emacs and gud offers execellent development env. The...
1
by: Skeleton Man | last post by:
Hi, I have a chat script which I added very basic bandwidth tracking to as follows: ob_start(); print "this is some output!"; print "this is more output!"; $bytes = ob_get_length(); //...
1
by: DDK | last post by:
Does anyone know if there are any books that talk about building a website tracking program for asp.net and C#? Or even any good resources on the web that talk about this. Thanks for any info,...
1
by: fred tate via .NET 247 | last post by:
I'm working on a project that will track a great deal of data forindividuals and will keep track of users for a very long time (5- 10) years. I'm looking for options as far as tracking anddisplaying...
9
by: sweety | last post by:
Dear All, How to encrypt a C data file and make binary file and then have to read a bin file at run time and decrypt the file and have to read the data. Any help to achive this pls. Would be...
2
by: C# programmer | last post by:
Hi All, I'm working on a project which requires tracking of recent document downloads. There is a feature in which user can download the docs without logining into the website for some of the...
3
by: =?Utf-8?B?R3JhaGFt?= | last post by:
I've added 2 tracking services to the wf runtime; one is the standard SqlTrackingService: trackingService = new SqlTrackingService(<trackingConnectionString>); <workflow...
0
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.