Skip to content

amansahu278/AES_Encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AES_Encryption

AES Encryption and Decryption on any file.

Description:

ECB based AES implementation for 128 bit, 192 bit and 256 bit key length.
Works almost perfectly for all files (as far as i have used/tested).

Installation:

  • Clone the repository
  • cd AES_Encryption && make project

Usage:

  • ./AES [-de?V] [-m INT] [--decrypt] [--encrypt] [--mode=INT] [--help] [--usage] [--version] Filepath
  • Filepath is the relative path of the file to be encrypted or decrypted
  • The defaults are encryption and 128bit mode
  • Use ./AES --help or ./AES --h for help
  • If file name is abc.xyz, the encrypted filename will be abc.xyz_enc
  • If the encrypted file name is abc.xyz, the decrypted filename will be abc.xyz
  • IMPORTANT: if the original file and encrypted file are in the same directory, decryption of the encrypted file WILL OVERWRITE the original file. It is suggested to relocate the orginal file, or rename the original file before decrypting.

Future Works:

  1. Threading?
  2. Various key sizes
  3. Change to file stream
  4. Remove padding after decryption
  5. Arg parse
  6. Add progress indicator

Learn to do it yourself:

Resources:

Author: Aman Sahu

About

AES-128 bit encryption using C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published