Results 1 to 9 of 9

Thread: Decent Encyption?

  1. #1

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734

    Decent Encyption?

    Hi, this is my first complete Encyption. Tell me if it is decent, and ways I could inprove it.

    VB Code:
    1. Dim I As Long
    2. Dim Total() As Byte
    3. Dim TheTotal() As Byte
    4. Dim n As Long
    5. Dim AX As Integer
    6. Dim AAA As Long
    7. Dim X As Integer
    8. n = FileLen(File1.Path + "/" + File1.FileName)
    9. ReDim Total(n - 1)
    10. ReDim TheTotal(n - 1)
    11.  
    12. TheFile = File1.Path + "/" + File1.FileName
    13.  
    14. Open TheFile For Binary As #10
    15. Get #10, , Total()
    16. Close #10
    17.  
    18. AAA = (Len(Text1.Text) + 100) / Len(Text1.Text)
    19.  
    20. AX = 1
    21.  
    22. For I = LBound(Total) To UBound(Total)
    23.  
    24. X = AAA
    25. X = X + AX
    26. TheTotal(I) = Total(I) Xor X
    27. AX = AX + 1
    28. If AX = 10 Then
    29. AX = 1
    30. End If
    31. Next I
    32.  
    33. Open TheFile For Binary Access Write As #20
    34. Put #20, , TheTotal()
    35. Close #20

    Be kind I am Noob at this

    Thanks

  2. #2

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734

  3. #3

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    bump

  4. #4
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    I've no idea.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  5. #5
    DaoK
    Guest
    quite simple to decrypt

  6. #6

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    lol any suggestions

  7. #7
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Just a thought though:

    AX = AX + 1
    If AX = 10 Then
    AX = 1
    End If


    What about:

    AX = AX + 1
    AX = AX Mod 10
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  8. #8

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    Thanks, anything else?

  9. #9

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    Anyone?

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