def rot_encode(s, offset=2)
s.split('').map{ |char| (char.ord + offset).chr }.join
end
Ruby rot encode
Rotation encoding with vari...
data = data.gsub("\xA0", " ")
data = data.gsub("\x99", "(TM)")
data = data.gsub("\x97", "-")
...
Ruby simplify multiple gsub
I could put the search/repl...
Looking for a more succinct...