Wstęp

Serwis: FileCipherService

Implementacja serwisu: FileCipherServiceImpl

Dostępne metody

 

EncryptedFile encryptFile( InputStream inputStream, String algorithm, int keyLength ) - metoda szyfruje plik podany jako inputStream za pomocą podanego algorytmu (np. "AES", "Blowfish", "DES", "RC2")  i klucza o długości podanej jako keyLength (np. 128). Zwraca obiekt klasy EncryptedFile.

InputStream decryptFile( InputStream inputStream, String algorithm, String key) - metoda odszyfrowuje plik podany jako inputStream za pomoca klucza. Zwraca odszyfrowany plik jako inputStream.

 

Obiekt EncryptedFile

Obiekt zawierający zaszyfrowany plik jako inputStream oraz wygenerowany klucz, którym plik został zaszyfrowany

Dostępne metody:

getInputStream() - zwraca zaszyfrowany plik jako inputStream

getCipherKey() - zwraca klucz, którym został zaszyfrowany plik

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