Skip to content

davisssamuel/bincrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encryption Challenge

Create a program that, when given both a file and a (integer) key, encrypts the file by adding together the ASCII number for each character, the character's index in the file, and the key and then converts that sum to binary. The program should also be able to decrypt any encrypted files it creates. Make the program as fast as possible in the language of your choice.

Read a walkthrough of my solution here.

Usage

To encrypt, specify your input and output files. Then use the -e flag with your key:

./bincrypt -e <key> <input_file> <output_file>

For a verbose output during encryption, add the -v flag:

./bincrypt -e <key> -v <input_file> <output_file>

To decrypt, again, specify your input and output files. Then use the -d flag with your key:

./bincrypt -d <key> <input_file> <output_file>

For a verbose output during encryption, add the -v flag:

./bincrypt -d <key> -v <input_file> <output_file>

About

A programming challenge completed in C

Topics

Resources

Stars

Watchers

Forks

Languages