项目作者: w-k

项目描述 :
Encrypted secret santa name drawing
高级语言: Go
项目地址: git://github.com/w-k/secret-santa.git
创建时间: 2018-12-08T11:04:45Z
项目社区:https://github.com/w-k/secret-santa

开源协议:

下载


Secret Santa

Prerequisites

Requires openssl to be available.

Installation

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

  1. 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:

  1. pubkeys
  2. ├── Ashley
  3. ├── John
  4. └── Mary

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

To demonstrate that the random assignment works:

  1. secret-santa -in=./pubkeys -demo

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

  1. 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
  1. result
  2. ├── Ashley
  3. ├── John
  4. ├── Mary
  5. ├── README.md
  6. └── decrypt