title: Encrypt username and password on batch script
body: <p>I'm trying to load flat file into server through FTP using batch files. I'm aware of the scripts and I'm able to transfer the file to server. Currently I'm following this below method.</p>
  
  <pre><code>@echo off
  title File Transfer
  color 3F
  cd "C:\Users\username\Desktop\Access\"
  echo -
  echo - Transferring File to Server. Please be patient... 
  echo -
  echo - Closing this window will Terminate the entire process 
  ftp -n -s:"C:\Users\username\Desktop\Access\ftp.txt" server_name &gt;"C:\Users\username\Desktop\Access\ftp.log"
  </code></pre>
  
  <p>Script File Code: (<code>ftp.txt</code>)</p>
  
  <pre><code>User Userid password
  mkdir App
  put "C:\Users\username\Desktop\Access\File.txt"   "App/File.txt"
  quit
  </code></pre>
  
  <p>My requirement is that I should not display username and password on the script file. These credential information dynamically coming from the variables and I'm generating this batch file and script file dynamically.</p>
  
  <p>Kindly any experts suggest me solution which makes more sense to accomplish this requirement. Thanks in advance.</p>