Skip to end of metadata
Go to start of metadata

Introduction

Service: FileCipherService

Service implementation: FileCipherServiceImpl

Available methods

 

EncryptedFile encryptFile( InputStream inputStream, String algorithm, int keyLength ) - method encrypts the file given as inputStream using the given algorithm (e.g. "AES", "Blowfish", "DES", "RC2") and a key of the length given as keyLength (e.g. 128). Returns an object of the EncryptedFile class.

InputStream decryptFile( InputStream inputStream, String algorithm, String key) - method decrypts the file given as inputStream using the key. Returns the decrypted file as an inputStream.

 

EncryptedFile object

An object containing the encrypted file as inputStream and the generated key with which the file was encrypted

Available methods:

getInputStream() - returns the encrypted file as an inputStream

getCipherKey() - returns the key with which the file was encrypted

  • No labels