Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

Encrypt - RC4

Hi,
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:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=1736

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
0
adam8
Asked:
adam8
  • 3
  • 2
1 Solution
 
cquinnCommented:
I'm too lazy to do it too!  You know what they say - If you want a job doing properly, do it yourself!
0
 
GivenRandyCommented:
On a P6-266 with 320MB memory, a 6.341MB file took 174 seconds.
0
 
GivenRandyCommented:
I had to change some names (e.g., "txtPattern" was being referred to as "txtPatter").
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
adam8Author Commented:
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
0
 
GivenRandyCommented:
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.
0
 
adam8Author Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now