-
Hey since your file contains binary data it's extremly easy to encrypt it. Just assume a password and XOR every bit of your database with this password. Remember to covert your password into a binary number in your program or you will get an error. To decrypt the file use the same password.
Presently I am also working on encryption techniques and will give you the code as soon as possible.
You can also search the previous few months posts on encryption.
Good luck.
:p Kinjal :p
-
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
-
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.
-
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 :)