method

separator_index_for

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveSupport::MessageVerifier
separator_index_for(signed_message) 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_verifier.rb, line 214
      def separator_index_for(signed_message)
        index = signed_message.length - digest_length_in_hex - SEPARATOR_LENGTH
        return if index.negative? || signed_message[index, SEPARATOR_LENGTH] != SEPARATOR

        index
      end
Register or log in to add new notes.