Simple key-based encryption using XOR gate.
Although bitwise operations are built into C, you still need a cryptographic library for hashing the key to mitigate exploits for guessing the key length. The list of supported libraries are in the Makefile, choose one and build with it.
$ make openssl
The only argument is the encryption key, stdin and stdout are utilized for reading and writing.
$ echo -n 1234567890 | xor test | xxd -p
# affc3b5aae9a7e27956c
Do the reverse for decrypting.
$ echo -n affc3b5aae9a7e27956c | xxd -p -r | xor test
# 1234567890