Use the encryption methods to encrypt a string
For getting a string from user use get set properties
like
Private _name As String
Public Property Name() As String
Get
Return _name
End Get
Private Set(ByVal value As String)
_name = value
End Set
End Property
here i am giving a link that explains simple encrypt and decrypt string
http://www.dotnetstuff.co.cc/2011/12/encript-string-in-net.html[
^]