title: how to encrypt string in asp.net c#
body: <pre><code>public string EncryptPwd(String strString)
          {
              int intAscii;
              string strEncryPwd = "";
              for (int intIndex = 0; intIndex &lt; strString.ToString().Length; intIndex++)
              {
                  intAscii = (int)char.Parse(strString.ToString().Substring(intIndex, 1));
                  intAscii = intAscii + 5;
                  strEncryPwd += (char)intAscii;
              }
              return strEncryPwd;
          }
  </code></pre>
  
  <p>This is my code.Please suggest me it is right way or not.</p>