This documentation is archived and is not being maintained.
PassportIdentity.Encrypt Method
.NET Framework 1.1
Encrypts data using the Passport participant key for the current site.
[Visual Basic] Public Shared Function Encrypt( _ ByVal strData As String _ ) As String [C#] public static string Encrypt( string strData ); [C++] public: static String* Encrypt( String* strData ); [JScript] public static function Encrypt( strData : String ) : String;
Parameters
- strData
- The data to be encrypted.
Return Value
Data encrypted using the Passport participant key for the current site.
Remarks
The maximum input size of the data is 2045 characters. For more information, see the Passport SDK documentation for IPassportCrypt.Encrypt, available in the MSDN Library at http://msdn.microsoft.com/library .
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
PassportIdentity Class | PassportIdentity Members | System.Web.Security Namespace
Show: