instance method extract_parts

Ruby on Rails 8.0.4

Since v7.1.6 Private — implementation detail, not part of the public API

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

extract_parts(encrypted_message)

No documentation comment.

Parameters

encrypted_message req
Source
# File activesupport/lib/active_support/message_encryptor.rb, line 350
      def extract_parts(encrypted_message)
        parts = []
        rindex = encrypted_message.length

        if aead_mode?
          parts << extract_part(encrypted_message, rindex, length_of_encoded_auth_tag)
          rindex -= SEPARATOR.length + length_of_encoded_auth_tag
        end

        parts << extract_part(encrypted_message, rindex, length_of_encoded_iv)
        rindex -= SEPARATOR.length + length_of_encoded_iv

        parts << encrypted_message[0, rindex]

        parts.reverse!.map! { |part| decode(part) }
      end

Defined in activesupport/lib/active_support/message_encryptor.rb line 350 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::MessageEncryptor

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close