Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --KeyWord must only contain letters and/or numbers!
- --Run in studio
- local KeyWord = "dog"
- local KeyNums = {}
- local NewSource = ""
- local Valid = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}
- local Source = [===========================[
- print("Hello world!")
- ]===========================]
- KeyWord = KeyWord:lower()
- for i = 1, #KeyWord do
- KeyNums[#KeyNums+1] = string.byte(KeyWord:sub(i, i))
- end
- print("Encrypting")
- local WaitNum = 0
- for i = 1, #Source do
- local Byte = string.byte(Source:sub(i, i))
- local MiniByte = Byte/#KeyNums
- for i = 1, #KeyNums do
- NewSource = NewSource .. (MiniByte*KeyNums[i]) .. ":"
- end
- WaitNum = WaitNum + 1
- if WaitNum % 5000 == 0 then
- wait((WaitNum/10000)*1.5)
- print(WaitNum, #Source)
- end
- end
- NewSource = NewSource:sub(1, #NewSource-1)
- print("------DONE------")
- print(NewSource)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement