Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. Rem Attribute VBA_ModuleType=VBAModule
  2. Option VBASupport 1
  3. Sub CALCULATE()
  4. Dim i, NOT_ANSWER
  5. NOT_ANSWER = "NOTNOTNOTNOTNOTNOTNOTNOTNOTNOTNOTNOT"
  6. For i = 1 To 16777216
  7. answer = func1(answer)
  8. Next i
  9. Hoja1.NOT_ANSWER.Text = "EKO{" + Replace(answer, "=", "") + "}"
  10. End Sub
  11.  
  12.  
  13. Public Function func1(ByVal sTextToHash As String)
  14. Dim obj1 As Object, obj2 As Object
  15. Dim TextToHash() As Byte
  16. Set obj1 = CreateObject("System.Text.UTF8Encoding")
  17. Set obj2 = CreateObject("System.Security.Cryptography.SHA1CryptoServiceProvider")
  18. TextToHash = obj1.Getbytes_4(sTextToHash)
  19. Dim bytes() As Byte
  20. bytes = obj2.ComputeHash_2((TextToHash))
  21. func1 = func2(bytes)
  22. Set obj1 = Nothing
  23. Set obj2 = Nothing
  24. End Function
  25.  
  26.  
  27. Private Function func2(ByRef arrData() As Byte) As String
  28. Dim var1
  29. Dim var2
  30. Set var1 = CreateObject("MSXML2.DOMDocument")
  31. Set var2 = var1.createElement("b64")
  32. var2.DataType = "bin.base64"
  33. var2.nodeTypedValue = arrData
  34. func2 = var2.Text
  35. Set var2 = Nothing
  36. Set var1 = Nothing
  37. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement