Skip to content

AndrewIjano/k128-encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔓 K128 Encryption Algorithm

PRs Welcome MIT Licence Implementation of K128 Encryption algorithm.

Project for subject MAC0336 (Cryptography for data security) at IME-USP.

Usage

$ make

$ ./k128 [execution mode] [-i input file] [-o output file] [-p password] [-a erase input] 

Execution modes

  • -c: Encrypts the input file
  • -d: Decrypts the input file
  • -1: Calculates the entropy of the algorithm (mode 1)
  • -2: Calculates the entropy of the algorithm (mode 2)

Password

The password needs to have:

  • At least 8 characters;
  • At least 2 letters;
  • At least 2 numbers.

Erase input mode

Using the flag -a, the input file is overwritten and deleted.

Examples

Encrypt the file test.in and erase it:

$ ./k128 -c -i test.in -o test.out -p "SeCur3P4SS" -a 

Decrypt the file test.out:

$ ./k128 -d -i test.out -o test.out.dec -p "SeCur3P4SS" 

Test the algorithm entropy (mode 1):

$ ./k128 -1 -i test.in -p "SeCur3P4SS" 

Test the algorithm entropy (mode 2):

$ ./k128 -2 -i test.in -p "SeCur3P4SS" 

License

MIT

About

🔓 Implementation of K128 Encryption algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published