method

xor_byte_strings

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActionController::RequestForgeryProtection
xor_byte_strings(s1, s2) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 380
      def xor_byte_strings(s1, s2)
        s2_bytes = s2.bytes
        s1.each_byte.with_index { |c1, i| s2_bytes[i] ^= c1 }
        s2_bytes.pack('C*')
      end
Register or log in to add new notes.