method

extract_part

Importance_0
v7.2.3 - Show latest stable - 0 notes - Class: ActiveSupport::MessageEncryptor
extract_part(encrypted_message, rindex, length) private

No documentation

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

Hide source
# File activesupport/lib/active_support/message_encryptor.rb, line 340
      def extract_part(encrypted_message, rindex, length)
        index = rindex - length

        if encrypted_message[index - SEPARATOR.length, SEPARATOR.length] == SEPARATOR
          encrypted_message[index, length]
        else
          throw :invalid_message_format, "missing separator"
        end
      end
Register or log in to add new notes.