title: how to encrypt a text file using batch?
body: <p>How can i encrypt the content in a text file using batch? and how can i decrypt it? </p>
  
  <p>i have tried setting each letter to a number but i do not know how to split the string into each letter and do that. </p>
  
  <p>I watched a video on youtube that help turn letters into numbers but it did not do it with a file. </p>
  
  <p>this is the code he provides in the video.</p>
  
  <pre><code>@echo off
  setlocal enableDelayedExpansion
  
  set /p code=Text:
  set chars=0123456789abcdefghijklmnopqrstuvwxyz
  
  for /L %%N in (10 1 36) do (
  
  for /F %%C in ("!chars:~%%N,1!") do (
  
  set "code=!code:%%C=%%N!"
  
  )
  
  )
  
  echo !code! 
  pause
  </code></pre>
  
  <p>Please help Thank you</p>