method

xor_byte_strings

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

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 386
      def xor_byte_strings(s1, s2) # :doc:
        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.