Table of Contents

Class AESEncryptedFileIOProcessor

Namespace
IO.Scanbot.Sdk.Persistence.Fileio
Assembly
DocumentSDK.NET.Droid.dll
public sealed class AESEncryptedFileIOProcessor : Object, IFileIOProcessor, IBaseFileIOProcessor, ICoreStreamProvider, IImageFileIOProcessor, IJavaObject, IDisposable, IJavaPeerable
Inheritance
AESEncryptedFileIOProcessor
Implements

Constructors

AESEncryptedFileIOProcessor(string, AESEncrypterMode)

public AESEncryptedFileIOProcessor(string password, AESEncryptedFileIOProcessor.AESEncrypterMode encrypterMode)

Parameters

password string
encrypterMode AESEncryptedFileIOProcessor.AESEncrypterMode

Fields

DefaultEncryptionAlgorithm

public const string DefaultEncryptionAlgorithm = "AES/CBC/PKCS5Padding"

Field Value

string

DefaultKeyAlgorithm

public const string DefaultKeyAlgorithm = "AES"

Field Value

string

DefaultKeyGenerationAlgorithm

public const string DefaultKeyGenerationAlgorithm = "PBKDF2WithHmacSHA1"

Field Value

string

KCCKeySizeAES128

public const int KCCKeySizeAES128 = 16

Field Value

int

KCCKeySizeAES256

public const int KCCKeySizeAES256 = 32

Field Value

int

Properties

A

public AESEncryptedFileIOProcessor.AESEncrypterMode A { get; set; }

Property Value

AESEncryptedFileIOProcessor.AESEncrypterMode

B

public bool B { get; set; }

Property Value

bool

C

public ISecretKey C { get; set; }

Property Value

ISecretKey

D

public IList<byte> D { get; set; }

Property Value

IList<byte>

E

public IList<byte> E { get; set; }

Property Value

IList<byte>

EncrypterMode

public AESEncryptedFileIOProcessor.AESEncrypterMode EncrypterMode { get; }

Property Value

AESEncryptedFileIOProcessor.AESEncrypterMode

F

public int F { get; set; }

Property Value

int

IterationCount

public int IterationCount { get; }

Property Value

int

Key

public ISecretKey Key { get; }

Property Value

ISecretKey

UseEncryption

public bool UseEncryption { get; }

Property Value

bool

Methods

Copy(File, File)

public void Copy(File source, File destination)

Parameters

source File
destination File

CopyRaw(File, File)

public void CopyRaw(File encryptedSource, File destination)

Parameters

encryptedSource File
destination File

GetInitializationVector()

public byte[] GetInitializationVector()

Returns

byte[]

GetSalt()

public byte[] GetSalt()

Returns

byte[]

Move(File, File)

public void Move(File source, File destination)

Parameters

source File
destination File

OpenFileInputStream(File)

public Stream OpenFileInputStream(File sourceFile)

Parameters

sourceFile File

Returns

Stream

OpenFileOutputStream(File)

public Stream OpenFileOutputStream(File destinationFile)

Parameters

destinationFile File

Returns

Stream

Read(File)

public byte[] Read(File encryptedSource)

Parameters

encryptedSource File

Returns

byte[]

ReadImage(Uri, Options)

public Bitmap ReadImage(Uri encryptedSourceUri, BitmapFactory.Options options)

Parameters

encryptedSourceUri Uri
options Options

Returns

Bitmap

ReadImage(File, Options)

public Bitmap ReadImage(File encryptedSource, BitmapFactory.Options options)

Parameters

encryptedSource File
options Options

Returns

Bitmap

Write(byte[], File)

public void Write(byte[] byteArray, File destination)

Parameters

byteArray byte[]
destination File

WriteImage(Bitmap, CompressFormat, int, File)

public void WriteImage(Bitmap bitmap, Bitmap.CompressFormat compressFormat, int quality, File destination)

Parameters

bitmap Bitmap
compressFormat CompressFormat
quality int
destination File