Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 723 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 723 Bytes

DES-Java

A Java class designed to perform DES encryption on files.

Use of this class is as follows:

Setting the DES cipher master key: des.setKey( long );.

Performing encryption: des.encrypt(FileInputStream, FileOutputStream);.

Performing decryption: des.decrypt(FileInputStream, FileOutputStream);.

An example application is as follows:

DES des = new DES();
des.setKey(0b0110110001101100001111000011001100111100001001111001110001101010L);

FileInputStream inputstream = new FileInputStream("plaintext.txt");
FileOutputStream outputstream = new FileOutputStream("ciphertext.txt");
			
des.encrypt(inputstream, outputstream);

UML