Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def xor(str, key)
- str.split(//).collect {|e| [e.unpack('C').first ^ (key.to_i & 0xFF)].pack('C') }.join
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement