Results 1 to 4 of 4

Thread: Encryption\Decryption

  1. #1

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking

    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.

    Kinjal

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    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!)

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  4. #4
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    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
  •  



Click Here to Expand Forum to Full Width