title: Make download button to create and download password protected file in shiny
body: <p>I want to make a download button using shiny which would be able to download the password-protected files (pdf/doc/any_other_extension) and write a custom message inside that file. Here is the code for .txt, I have to save the same thing but in a password-protected file. Is there any way to do that?</p>
  <pre><code>output$fileDownloader&lt;- downloadHandler(
     filename = function() {
        paste(glue(&quot;password_protected_file_{input$name}_&quot;), as.POSIXlt(Sys.time(), tz = &quot;Asia/Kolkata&quot;), &quot;.txt&quot;, sep = &quot;&quot;)
      },
      content = function(file) {
        writeLines(glue(&quot;message_is_{input$message}_&quot;), file)
        
      }
    )
  </code></pre>