Secret santa program in C
C 60.5%
Rust 39.5%
3 1 0

Clone this repository

https://tangled.org/lewis.moe/secret-santa
git@tangled.org:lewis.moe/secret-santa

For self-hosted knots, clone URLs may differ based on your setup.

README.md

secret-santa#

Simple secret santa program in C, outputting a base64-encoded list of recievers that can be pasted to the corresponding givers.

Using libb64's impl of encoding.

Usage#

> gcc -o secret_santa main.c
> echo "albert bobby colin" | ./secret_santa
Seed: 12345
colin: (base 64 encoding of the word bobby)
albert: (base 64 encoding of the word colin)
bobby: (base 64 encoding of the word albert)

Arguments#

-s seed, for replicability. -d decode/debug, leave the recipients as plaintext.