title: how do you save text data into binary file to be unreadable
body: <p>Well i just cannot find a good simple example all over the net to help me achieve my aim without having to learn some whole new chapter on some topic in vbnet.
  I want to save crucial  "settings" such as administrative password that can be used by user computer to access a remote server from their computer.</p>
  
  <p>In the example that i have the program works ok as long as data is not text such as "This is my password" but will not reveal numbers like 1232.78 or boolean values</p>
  
  <p>Plain text i.e strings can be read easily from file using notepad.</p>
  
  <p>Is there a way to avoid showing of text data being obviously visible in binary files?</p>
  
  <pre><code>      Imports System
        Imports System.IO
        Public Class Form2
  
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  
  
      Const fileName As String = "AppSettings.txt"
  
      Using writer As BinaryWriter = New BinaryWriter(File.Open(fileName, FileMode.Create))
          writer.Write("This is my secret password")
          writer.Write(1.25F)
          writer.Write("c:\Temp")
          writer.Write(10)
          writer.Write(True)
      End Using
  
  
  
   End Sub
  
   end class
  </code></pre>
  
  <p>When i open my file AppSettings.txt with notepad it shows</p>
  
  <pre><code>              This is my secret password   ?c:\Temp
  </code></pre>
  
  <p>with some other characters that cannot show here.
  When i read text file all data in text file reads correctly.</p>
  
  <p>So how do i get program user not to see the human readable information of binary text files?</p>