FCFL.NET Common Library - API Reference
EncryptString(DataProtectionStore,String,String) Method

Specifies which key store to use (User or Machine)

A string of text to encrypt

The entropy, or "password" to use to decrypt this data. The value must be the same as was used to originally encrypt the data
Encrypts a string, using the specified entropy, 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, _
   ByVal entropy As String _
) As String
public static string EncryptString( 
   DataProtectionStore keyStore,
   string plainText,
   string entropy
)

Parameters

keyStore
Specifies which key store to use (User or Machine)
plainText

A string of text to encrypt

entropy
The entropy, or "password" to use to decrypt this data. The value must be the same as was used to originally encrypt the data
Remarks

It is important not to lose the entropy used to encrypt this data. If the entropy is lost, the data cannot be decrypted. If the entropy must be stored, do not store it with the encrypted payload.

 

 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 2003 family

See Also

Reference

DataProtector Class
DataProtector Members
Overload List

 

 


© 2010 Dovetail Software, Inc. - All rights reserved.
- Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
- .NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.

Send comments on this topic.