Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local str, magic = io.read(), "\x00"
- if string.find(str, magic) then
- error("File contains magic bytes")
- end
- local result = str:gsub("\xe2\x80\xaa", magic):gsub(magic.."+", function(s)
- return string.char(97 + ((#s-1) % 25))
- end)
- print("\n"..result)
Add Comment
Please, Sign In to add comment