Results 1 to 8 of 8

Thread: encryption

  1. #1

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    encryption

    I wrote a program a while back that encypts using, to the best of my knowledge, XOR. I lost the source code to the program but i still have the program. I'm wondering if other people using similar XOR encryption/decryption can help we re-write the algo.

    It's for a chat program I made, and now I can't make updates because I lost the source.

    Here are some examples:

    encyption.txt

    Uses several chr$(0)'s so the only way to properly view it would be with wordpad, or other editor capable of displaying with richtext.

    Thank you,

  2. #2
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    security's my specialty, but why on earth were you using XOR?????

  3. #3

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Was using, have a much better algo now, *TOP SECRET* hehe. But it doesn't help me with my current problem.

    Anyway, do you think you can help me decrypt this?

    Thanks for your reply,

  4. #4
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Acutually, a "Top Secret" algorithm won't be very secure because since the algorithm is not published, it would not be scrutinized by others. Usually, an algorithm is only declared "secure" after at least two years under the spotlight of cryptoanalysts.

    Well, I'm not really a cryptoanalyst, so I guess you can try reversing your code and running it in loops with different passwords until you get something readable.

  5. #5
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329
    just curious what way(s) you'd personally would recommend besides XOR.

    thanks
    ______________

  6. #6
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    I would recommend RC4 or RC5, IDEA or 3DES, or Ecliptic Curve Algorithm.

  7. #7

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    The thing is it isn't a password, it's simple a linear-encryption(by that I mean it isn't based on a user-inputed value) algo. It's to encrypt the text so most people can't decrypt it, and it has done it's job because I can't do it.

    Please anyone, help me.

    Thanks,

  8. #8
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    By Megatron, encrypt a file:

    Code:
    Sub Encrypt(ByVal sName As String)
        Dim b() As Byte
        Dim nb() As Byte
        n = FileLen(sName)
        ReDim b(n - 1)
        ReDim nb(n - 1)
        Open sName For Binary Access Read As #1
        Get #1, , b()
        Close #1
        Kill sName
        For i = LBound(b) To UBound(b)
            nb(i) = b(i) Xor 5
        Next i
    
        Open sName For Binary Access Write As #1
        Put #1, , nb()
        Close #1
    End Sub

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