https://github.com/jwerle/libbeaufort
A C implementation of the Beaufort Cipher
https://github.com/jwerle/libbeaufort
Last synced: about 1 year ago
JSON representation
A C implementation of the Beaufort Cipher
- Host: GitHub
- URL: https://github.com/jwerle/libbeaufort
- Owner: jwerle
- License: mit
- Created: 2014-05-03T01:53:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-17T16:21:49.000Z (about 12 years ago)
- Last Synced: 2025-03-29T19:03:27.822Z (about 1 year ago)
- Language: C
- Size: 193 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
libbeaufort
===========
A C implementation of the Beaufort Cipher
## about
## install
[clib](https://github.com/clibs/clib):
```sh
$ clib install jwerle/libbeaufort
```
source:
```sh
$ git clone git@github.com:jwerle/libbeaufort.git
$ cd libbeaufort
$ make
$ make install
```
## usage
*Command line utility:*
**encrypt:**
```sh
$ echo kinkajous are awesome | beaufort --encrypt --key=panda
5s0t06mtl 0yw Dhwxm1z
```
**decrypt:**
```sh
$ echo 5s0t06mtl 0yw Dhwxm1z | beaufort --decrypt --key=panda
kinkajous are awesome
```
*C Library:*
```c
#include
#include
#include
int
main (void) {
char *str = "bradley the kinkajou has a secret";
char *key = "monkey";
char *enc = beaufort_encrypt(str, key, NULL);
printf("%s\n", enc); // BxD7tKo v66 uGz4D1q4 5Ev A mKAx9r
char *dec = beaufort_decrypt(enc, key, NULL);
printf("%s\n", dec); // bradley the kinkajou has a secret
return 0;
}
```
## api
See [beaufort.h](https://github.com/jwerle/libbeaufort/blob/master/include/beaufort.h)
## license
MIT