Skip to content
forked from box-lin/boxdbox

A custom encryption & decryption toolkit written in Java. Huffman Coding from scratch plus SHA-256 hashing..

License

Notifications You must be signed in to change notification settings

unibytes/BoxDBox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Box and Unbox your file through Huffman Coding Algorithm and SHA256 Hashing


Software Architecture

App Outlook

Milestone 1

  • Software Design
  • Graphical User Interfaces
  • Huffman Tree Node

Milestone 2

  • Algorithm to build HuffmanTree completed.
  • Translated HuffmanTree to HuffmanTable
  • Translated Byte Array from input file to Huffman Code string completed.
  • Hashing with SHA256 completed.
  • Object serialization completed, serialized a packet that consists of HuffmanTable, HuffmanCode, and SHA256Hashed Password.
  • Encryption Reader that reads bytes from the file completed.
  • Encryption Writer that writes a packet to the file completed.
  • Encrypter wrapper class completed.
  • Decryption Reader that reads a packet from the file completed.
  • Decryption Writer that writes original bytes to the file completed.
  • Decryption algorithm that greedy compute the original byte from Huffmancode and Huffmantable completed.
  • MainWindow Action Listeners for load, box, unbox buttons implemented.
  • MainWindow Keyboard listeners for secrete key implemented.
  • Icons for UI components added.

Milestone 3

  • Updated Architecture diagram
  • Added description about the algorithms
  • PPT demo added
  • Video demo added
  • Updated the demo page

Major Subcomponents Description

  • Packet Builder
    • Packet Builder build the Huffman Tree from the original byte array read from the input file. Then build the Huffman Table according to the Huffman Tree. Finally, build the Huffman Code String from Huffman Table and original byte array. Huffman Code String is the encoded string that describes the original byte array in a secret way.

About

A custom encryption & decryption toolkit written in Java. Huffman Coding from scratch plus SHA-256 hashing..

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 83.7%
  • Java 12.5%
  • HTML 3.4%
  • JavaScript 0.4%