A C implementation of the Beaufort Cipher
clib:
$ clib install jwerle/libbeaufort
source:
$ git clone [email protected]:jwerle/libbeaufort.git
$ cd libbeaufort
$ make
$ make install
Command line utility:
encrypt:
$ echo kinkajous are awesome | beaufort --encrypt --key=panda
5s0t06mtl 0yw Dhwxm1z
decrypt:
$ echo 5s0t06mtl 0yw Dhwxm1z | beaufort --decrypt --key=panda
kinkajous are awesome
C Library:
#include <stdio.h>
#include <stdlib.h>
#include <beaufort.h>
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;
}
See beaufort.h
MIT