Skip to content

w-k/secret-santa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Secret Santa

Prerequisites

Requires openssl to be available.

Installation

Install Go if you haven't already, and get this package:

go get github.com/w-k/secret-santa

Usage

Ask all secret santa participants to submit their public keys. Assuming that a participant is a git user, he or she should have a ./ssh/id_rsa.pub file on their computer already. If not, they should follow these instructions to create it.

Rename the files to each participant's name and put them into a folder. For example, if John, Mary and Ashley are participating, we should end up with this folder:

pubkeys
├── Ashley
├── John
└── Mary

Where Ashley is the id_rsa.pub file received from Ashley, etc.

To demonstrate that the random assignment works:

secret-santa -in=./pubkeys -demo

To generate the results, readable only by the owner of the corresponding private key:

secret-santa -in=./pubkeys -out=./result.zip

The result file will contain:

  • one file per each participant containing the result (name of the person to give the present to)
  • a bash script to decrypt the result
  • a README file with instructions on how to use it
result
├── Ashley
├── John
├── Mary
├── README.md
└── decrypt

About

Encrypted secret santa name drawing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages