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