View Single Post
  #9  
Old 05-25-2018, 07:38 AM
Nyber Nyber is offline
Registered User
 
Join Date: May 2018
Posts: 8
Hi Jake,

Question. I've written all my logic in VBScript and included some encryption obfuscation and encoded to file.vbe.

Should I have written it in Python and encoded it as file.pyc instead? Is Python encoding better? Albeit still a flawed version of "encryption".

Code:
Function Encrypt(sStr)
  Dim i,n,e
  e = ""
  n = 1
  For i = 1 To Len(sStr)
    e = e & Chr(Asc(Mid(sStr,i,1)) + Asc(Mid(Key,n,1)))
    n = n + 1
    If n > Len(Key) Then
      n = 1
    End If
  Next
  Encrypt = e
End Function

Last edited by Nyber; 05-25-2018 at 07:50 AM.
Reply With Quote