DOFCipherencrypt Method OpenDOF Object Access Library
Encrypt a block of data.

Namespace: org.opendof.core.oal.security
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public abstract byte[] encrypt(
	byte[] plaintext
)

Parameters

plaintext
Type: SystemByte
The buffer containing the plaintext block to be encrypted. Must not be null.

Return Value

Type: Byte
The encrypted block.
Exceptions

ExceptionCondition
DOFSecurityExceptionIf the plaintext can not be encrypted.
DOFSecurityException
Remarks

Encrypt a block of data. This call is used to encrypt a single block of plaintext (of size getBlockSize() ).
See Also

Reference