method
xor_byte_strings
v4.2.1 -
Show latest stable
- Class:
ActionController::RequestForgeryProtection
xor_byte_strings(s1, s2)protected
No documentation available.
# 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