Encrypts the given char array using the public key from the Domain object associated with the given EngineObject. The input char array is UTF-8 encoded before encryption.

Note
After encryption is done, the input char array is cleared.


Namespace: FileNet.Api.Util
Assembly: FileNet.Api (in filenet.api.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Encrypt( _ 
   ByVal eo As IEngineObject,  _ 
   ByVal plainText As Char() _ 
) As Byte()
C#
public static byte[] Encrypt(
   IEngineObject eo,
   char[] plainText
)
C++
public:
 static array<char>^ Encrypt(
   IEngineObject eo,
   array<wchar_t>^ plainText
)
J#
public static byte[] Encrypt(
   IEngineObject eo,
   char[] plainText
)
JScript
public static  function Encrypt(
   eo : IEngineObject,
   plainText : char[]
) : Byte[]

Parameters

eo
An EngineObject.
plainText
The input plain text char array.

Return Value

The output cipher text byte array.

See Also