class ActiveSupport::MessageEncryptor
def extract_part(encrypted_message, rindex, length)
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