Molodejkaoff

Untitled

Nov 8th, 2024
36,089
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. local module_upvr_2 = {}
  2.  
  3. local Players_upvr = game:GetService("Players")
  4.  
  5. -- Populate module_upvr and module_3_upvr tables
  6. local function populate_tables()
  7. local module_upvr = {}
  8. local module_3_upvr = {}
  9. for i = 0, 255 do
  10. local string_char_result1 = string.char(i)
  11. local utf8_char_result1 = utf8.char(i + 917504)
  12. module_upvr[string_char_result1] = utf8_char_result1
  13. module_3_upvr[utf8_char_result1] = string_char_result1
  14. end
  15. return module_upvr, module_3_upvr
  16. end
  17.  
  18. local module_upvr, module_3_upvr = populate_tables()
  19.  
  20. -- Encode function
  21. function module_upvr_2.Encode(arg1)
  22. return string.gsub(arg1, '.', module_upvr)
  23. end
  24.  
  25. -- Encrypt function
  26. function module_upvr_2.Encrypt(arg1, arg2)
  27. if not arg1 then
  28. return 1
  29. end
  30. if not arg2 then
  31. return 1
  32. end
  33.  
  34. local var38
  35. local LocalPlayer = Players_upvr.LocalPlayer
  36.  
  37. if arg2 == "FrogWasHere" then
  38. var38 = string.format("%s-%d-%d", LocalPlayer.Name, LocalPlayer.UserId * 2, LocalPlayer.UserId + os.date("%Y") + os.date("%j"))
  39. end
  40.  
  41. local module_2 = {}
  42. local tbl = {string.byte(string.format("%s-%d-%d", LocalPlayer.Name, LocalPlayer.UserId * 2, (LocalPlayer.UserId + os.date("%Y")) * 2), 1, -1)}
  43. local tbl_2 = {string.byte(arg1, 1, -1)}
  44.  
  45. for i_4 = 1, #tbl_2 do
  46. table.insert(module_2, string.char(bit32.bxor(tbl_2[i_4], tbl[i_4 % #tbl + 1])))
  47. end
  48.  
  49. return module_upvr_2.Encode(table.concat(module_2)), var38
  50. end
  51.  
  52. return module_upvr_2
  53.  
Add Comment
Please, Sign In to add comment