Skip to content
Snippets Groups Projects
Commit 1a43f560 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

A daily-challenge script

parent 35624831
No related branches found
No related tags found
No related merge requests found
Just a CGI script that produces a different challenge every day. The challenge
is based on the date, but others should not be able to generate them because of
a salt.
Simply place it somewhere on public web and set the salt (and comment the exit
1 there).
#!/bin/sh
set -e
exit 1 # See below
SALT='<enter-some-salt-here-when-deploying>'
echo 'Content-Type: text/plain; charset=ascii'
echo ''
(
echo "$SALT"
date +%d%m%y
echo "$SALT"
) | sha256sum | cut -f1 -d\
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment