summaryrefslogtreecommitdiff
path: root/scripts/recrypt
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-04 19:47:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-04 19:47:59 -0200
commit6f3ba0425a7d3577f4adde66ee66c2460de8690f (patch)
treec85fedadc4b350394426329762ef813fbda73213 /scripts/recrypt
parentb6115dbdc3c7b77be834a474131c9f68bbdd7487 (diff)
downloadkeyringer-6f3ba0425a7d3577f4adde66ee66c2460de8690f.tar.gz
keyringer-6f3ba0425a7d3577f4adde66ee66c2460de8690f.tar.bz2
Major design changes
Diffstat (limited to 'scripts/recrypt')
-rwxr-xr-xscripts/recrypt22
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/recrypt b/scripts/recrypt
deleted file mode 100755
index 48c4d40..0000000
--- a/scripts/recrypt
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-#
-# Re-encrypt files to multiple recipients.
-#
-
-FILE="$1"
-BASENAME="`basename $0`"
-RECIPIENTS="config/recipients"
-
-if [ -z "$FILE" ]; then
- echo "Usage: `basename $0` <file>"
- exit 1
-elif [ ! -f "$RECIPIENTS" ]; then
- echo "No recipient config was found"
- exit 1
-elif [ ! -f "keys/$FILE" ]; then
- echo "File not found"
- exit 1
-fi
-
-recipients="$(awk '{ print "-r " $2 }' $RECIPIENTS | xargs)"
-gpg -d keys/$FILE | gpg --armor -e -s $recipients > keys/$FILE