GitCrypt/.gitcrypt/gensalt

9 lines
153 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
BASEDIR="$(dirname "$0")"
2015-10-30 14:33:02 +01:00
cat /dev/urandom | base64 | tr -dc 0-9a-f | head -c 16 > "$BASEDIR/salt"
cd "$BASEDIR/.."
rm .git/index
git add -A