EncryptString(DataProtectionStore,String) Method
Specifies which key store to use (User or Machine)
A string of text to encrypt
Encrypts a string and returns a Base64-encoded string representing the encrypted output
Syntax
'Declaration
Public Overloads Shared Function EncryptString( _
ByVal _keyStore_ As DataProtectionStore, _
ByVal _plainText_ As String _
) As String
public static string EncryptString(
DataProtectionStore _keyStore_,
string _plainText_
)
Parameters
keyStore
Specifies which key store to use (User or Machine)
plainText
A string of text to encrypt
Remarks
** WARNING**: The encryption produced by this class is only usable from the machine on which the encryption occurred. The encrypted text cannot be used by a different computer.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family