Skip to main content

Encrypter

Version: 7.0

cete.dynamicpdf.io.encrypter

Encrypter​

Represents an Encrypter class used for encryption of the document.

public class Encrypter
Public Class Encrypter

Inheritance: Object → Encrypter

Licensing​

This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

  • DynamicPDF Generator for .NET Enterprise Edition
  • DynamicPDF Merger for .NET Enterprise Edition
  • DynamicPDF ReportWriter for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

Constructors​

Encrypter(Byte[], Byte[], Byte[], Int32)​

Initializes a new instance of the Encrypter class.

public Encrypter(Byte[] owner, Byte[] user, Byte[] encryptionKey, int privileges)
Public Sub New (owner As Byte(), user As Byte(), encryptionKey As Byte(), privileges As Integer)

Parameters​

Encrypted owner password.

Encrypted user password.

Encryption key.

PDF value of privileges.

Methods​

Draw(DocumentWriter)​

Draws the encrypter dictionary to the given DocumentWriter object.

public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)

Parameters​

DocumentWriter object to receive the output.

Encrypt(Byte)​

Encrypts the byte.

public byte Encrypt(byte data)
Function Encrypt(data As Byte) As Byte

Parameters​

Byte to encrypt.

Returns​

An encrypted byte.

Encrypt(Byte[])​

Encrypts the data found in the data byte array and returns the output.

public Byte[] Encrypt(Byte[] data)
Function Encrypt(data As Byte()) As Byte()

Parameters​

Data to encrypt.

Returns​

An encrypted byte array.

Encrypt(Stream, Byte[], Int32, Int32)​

Encrypts the data found in the data byte array to the output stream.

public void Encrypt(Stream stream, Byte[] data, int start, int length)
Sub Encrypt(stream As Stream, data As Byte(), start As Integer, length As Integer)

Parameters​

The output stream to recieve the encrypted data.

Data to encrypt.

Start of the data to encrypt.

Length of the data to encrypt.

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Reset(Int32)​

Resets the encryptor.

public void Reset(int objectNumber)
Sub Reset(objectNumber As Integer)

Parameters​

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF.IO