title: Visual basic substitution cipher
body: <p>I am trying to create a substitution cipher using Visual Basic. I am new to programming and struggling so would appreciate some support please.</p>
  
  <p>The cipher should do the following:</p>
  
  <ol>
  <li>Ask the user for a message to encrypt.</li>
  <li>Ask the user for a key (or ask the system to generate a key, whichever is easier to code).</li>
  <li>Encrypt the message using the key.</li>
  <li>Return encrypted message.</li>
  </ol>
  
  <p>Example:</p>
  
  <ul>
  <li>Message = hello </li>
  <li>Alphabet: "abcdefghijklmnopqrstuvwxyz" </li>
  <li>Key: "kxgtlmpqbwcnderfahjusviyoz" </li>
  <li>Return encrypted message.</li>
  </ul>
  
  <p>The main parts that I need help with are 2 and 3. What I need to know is the steps (English or syntax) to solve this and then I can try coding it myself. If you have an example that will be great.</p>
  
  <p>Note that I am not seeking help on how to create a Caesar Cipher. A Substitution Cipher here will replace each letter with another character (which is the key).</p>
  
  <p>Thanks.</p>