Skip to content

University Project: A Java class designed to perform DES encryption on files

Notifications You must be signed in to change notification settings

ryan-n-may/Java_DES_Encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

University Project: A Java class designed to perform DES encryption on files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages