|
-
May 14th, 2000, 02:22 PM
#1
Thread Starter
Fanatic Member
-
May 14th, 2000, 03:59 PM
#2
Fanatic Member
Basic XOR encryption is not a good idea.
A binary file is likely to contain null values and when you XOR a password against nulls you get the password (very bad).
The DES encryption spec is on the net. and you can use triple DES for better security (which is the same basic algorithm but 128 to 168bit rather than 56)
I've coded it once in VB (to learn it) but it is still very slow and needs major optimization -basically once I got it to work on files I stopped working on it so it's very rough.
If you want to give me a hand with it we can turn it into a DLL. but at the moment it takes about a minute per meg. (with some tweaking you could probably bring that up by a factor of about 100)
If you're interested in learning the DES spec let me know otherwise you should be able to find an ocx on the web.
Secure = Yes
Fast = Not yet
but don't use XOR on binary files
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
May 14th, 2000, 04:26 PM
#3
Frenzied Member
I put one up here http://forums.vb-world.net/showthrea...threadid=11948 some time ago, it's coded for strings at the moment but it won't be hard to change to binary, it's very secure when you consider how simple it is, I havn't given it and speed tests but I can't see why it would be slow.
-
May 15th, 2000, 05:37 AM
#4
Fanatic Member
I know that binary encrypting reads very slowly, but im going to bring the encryption inside my program so as i read a value
Get 1, , Letter : Letter = Decrypt(Letter)
The program will decrypt the Letter as i read it, this should speed up the proccess instead of having to decrypt the file every time. Im not worriying about the encryption time it takes to encrypt, just the ammount of time it will take to decrypt, because i will be generating these files myself, and the only speed factor is that of how long the program loads for other users. None of the libraries will be writen from the program.
Thanks for the reply to all of you, i just actually thought of something that will help my encryption and make it secure.
Paul i wouldent mind giving you a hand with the encryption you were talking about. Give me a shout at
[email protected]
And thanks for the OCX file suggestion, but i dont really like to use OCX because other users tend to use them as well.
Thanks again
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|