Encrypts the given byte array using the public key from the Domain object associated with the given EngineObject.

Note
After encryption is done, the input byte 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 Byte() _ 
) As Byte()
C#
public static byte[] Encrypt(
   IEngineObject eo,
   byte[] plainText
)
C++
public:
 static array<char>^ Encrypt(
   IEngineObject eo,
   array<char>^ plainText
)
J#
public static byte[] Encrypt(
   IEngineObject eo,
   byte[] plainText
)
JScript
public static  function Encrypt(
   eo : IEngineObject,
   plainText : Byte[]
) : Byte[]

Parameters

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

Return Value

The output cipher text byte array.

See Also