title: Convert from String to Base 64 String JSP
body: <p>I want to convert String of password to Base 64 before i input it to database, so it will be safer. Can i achieve that?
  Here the example from C#.net :</p>
  
  <blockquote>
    <p>Byte[] enByte = ASCIIEncoding.ASCII.GetBytes(thepassword);</p>
    
    <p>string lsPwd = Convert.ToBase64String(enByte);</p>
  </blockquote>