https://github.com/isebasus/hamming
A Hamming Encoder and Decoder.
https://github.com/isebasus/hamming
decryption encryption hamming
Last synced: 12 months ago
JSON representation
A Hamming Encoder and Decoder.
- Host: GitHub
- URL: https://github.com/isebasus/hamming
- Owner: isebasus
- License: mit
- Created: 2021-06-14T09:19:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T01:01:42.000Z (about 5 years ago)
- Last Synced: 2025-03-16T09:01:49.191Z (over 1 year ago)
- Topics: decryption, encryption, hamming
- Language: C
- Homepage:
- Size: 4.87 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> :warning: **This Project is a modified school project** and thus no students of CSE 13s should be looking at my source code.
# 🔑 Hamming Codes [](https://github.com/isebasus/Hamming/blob/master/LICENSE)
## A Hamming encode and decode implementation.
This project is able to build two programs (the encoder and decoder). Both programs use Hamming codes to encode or decode messages. The user will need to pipe in desired files to encode or decode.
## What you need
In order to compile this program you'll need the Makefile provided, encode.c and decode.c. You'll also need all the .h files as dependencies.
### Running
To build the program, you will need to run these commands.
Once inside the hamming directory, run:
```
$ make all
```
This will build all programs including encode.c, decode.c, error.c, and entropy.c
To run encode.c:
```
$ ./encode [-h] [-i infile] [-o outfile]
```
The arguments needed to run this program are:
```
-h Program usage and help.
-i infile Input data to encode.
-o outfile Output of encoded data.
```
To run decode.c:
```
$ ./decode [-h] [-v] [-i infile] [-o outfile]
```
The arguments needed to run this program are:
```
-h Program usage and help.
-v Print out statistics
-i infile Input data to encode.
-o outfile Output of encoded data.
```
To remove the binary files run:
```
$ make clean
```
### 📚 Sources
* [The C Programming Language - 2nd Edition](https://drive.google.com/file/d/0BxImv9GQ06DcNjc1MTk0N2ItZmJmNC00YTM0LWFmN2UtMGQ4ZmE3Y2E1YzU4/view) - BitMatrix Inspiration
* Sample Files provided by my professor
* The internet of course