Encrypt - RC4

Posted on 2000-05-12
Last Modified: 2010-05-02
i will display some code i got and i want you to tell me a few things about it.................

The code i want you to look at is at:

have a look and enter it into your version of vb at home and try encrypting a file 6 approx megs.
tell me the exact filesize, tell me exactly how long it took to encrypt it and tell me if the encryption is reasonable. for example could i put a lot of trust into the encryption.
I am too lasy to do this myself and it really isn't that hard but i don't have too much time.
Thanks in advance
Question by:adam8
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 15

Expert Comment

ID: 2804539
I'm too lazy to do it too!  You know what they say - If you want a job doing properly, do it yourself!

Accepted Solution

GivenRandy earned 50 total points
ID: 2804651
On a P6-266 with 320MB memory, a 6.341MB file took 174 seconds.

Expert Comment

ID: 2804655
I had to change some names (e.g., "txtPattern" was being referred to as "txtPatter").
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.


Author Comment

ID: 2806143
nearly 3 minutes?
which function did you use?
for large files you are supposed to use EnDeCryptSingle but for small files the EnDeCrypt function, try it again, it should only take around 8 seconds

Expert Comment

ID: 2806688
I tried it on a slower machine and it took almost 8 minutes.  The file is 6+ MB -- but it should only take 8 seconds?

I checked and it is calling the EnDeCryptSingle function.

Author Comment

ID: 2806781
ok i will accept the answer.
i just saw a rc4 cipher in vb that took 14 seconds for a 6 meg file on a pentium 133 which is quite fast.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question