method

xor_byte_strings

Importance_0
v6.0.0 - 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 409
      def xor_byte_strings(s1, s2) # :doc:
        s2 = s2.dup
        size = s1.bytesize
        i = 0
        while i < size
          s2.setbyte(i, s1.getbyte(i) ^ s2.getbyte(i))
          i += 1
        end
        s2
      end
Register or log in to add new notes.