AESEncryptedFileIOProcessor

class AESEncryptedFileIOProcessor(password: String, val encrypterMode: AESEncryptedFileIOProcessor.AESEncrypterMode = AESEncrypterMode.AES256) : FileIOProcessor

File processor which performs AES based encryption/decryption

Constructors

Link copied to clipboard
constructor(password: String, encrypterMode: AESEncryptedFileIOProcessor.AESEncrypterMode = AESEncrypterMode.AES256)

Types

Link copied to clipboard

Represents supported AES key sizes

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val iterationCount: Int = 5000
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val useEncryption: Boolean = true

Functions

Link copied to clipboard
open override fun copy(source: File, destination: File)

Creates a copy of the source file to the destination file with encryption if its enabled

Link copied to clipboard
open override fun copyRaw(encryptedSource: File, destination: File)

Creates a raw copy of the source file to the destination file without encryption if its enabled

Link copied to clipboard
open override fun move(source: File, destination: File)

Creates a copy of the source file to the destination file and deletes the source file. Encryption is applied if enabled.

Link copied to clipboard
open override fun openFileInputStream(sourceFile: File): InputStream

Returns OutputStream for the source file

Link copied to clipboard
open override fun openFileOutputStream(destinationFile: File): OutputStream

Returns OutputStream for the destination file

Link copied to clipboard
open override fun read(encryptedSource: File): ByteArray?

Read ByteArray data from the source File

Link copied to clipboard
open override fun readImage(encryptedSourceUri: Uri, options: BitmapFactory.Options?): Bitmap?

Read Bitmap image from the source file Uri

open override fun readImage(encryptedSource: File, options: BitmapFactory.Options?): Bitmap?

Read Bitmap image from the source File

Link copied to clipboard
open override fun write(byteArray: ByteArray, destination: File)

Write ByteArray data to the destination File

Link copied to clipboard
open override fun writeImage(bitmap: Bitmap, compressFormat: Bitmap.CompressFormat, quality: Int, destination: File)

Write Bitmap to the destination File