encryptInputStream

abstract fun encryptInputStream(inputStream: InputStream): InputStream

Perform Cryptographic encryption of an input stream using provided cipher key.

Return

InputStream containing the encryption of inputStream using PNConfiguration.getCipherKey.

Parameters

inputStream

InputStream to be encrypted.

cipherKey

Cipher key to be used for encryption.

Throws

Throws exception in case of failed encryption.


abstract fun encryptInputStream(inputStream: InputStream, cipherKey: String?): InputStream

Perform Cryptographic encryption of an input stream using provided cipher key.

Return

InputStream containing the encryption of inputStream using cipherKey.

Parameters

inputStream

InputStream to be encrypted.

cipherKey

Cipher key to be used for encryption.

Throws

Throws exception in case of failed encryption.