method

length_after_encode

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveSupport::MessageEncryptor
length_after_encode(length_before_encode) 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 320
      def length_after_encode(length_before_encode)
        if @url_safe
          (4 * length_before_encode / 3.0).ceil # length without padding
        else
          4 * (length_before_encode / 3.0).ceil # length with padding
        end
      end
Register or log in to add new notes.