Flowdock
method

xor_byte_strings

Importance_0
v4.2.7 - 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 320
      def xor_byte_strings(s1, s2)
        s1.bytes.zip(s2.bytes).map { |(c1,c2)| c1 ^ c2 }.pack('c*')
      end
Register or log in to add new notes.