blob: 2ea859b0885612c8c8fa93a2336566e214e52ed6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
#
# Re-encrypt files to multiple recipients.
#
# Load functions
LIB="`dirname $0`/../../lib/bash/functions"
source "$LIB" || exit 1
# Get file
keyringer_get_file "$2"
# Recrypt
gpg --use-agent -d "$KEYDIR/$FILE" | gpg --use-agent --armor -e -s $(keyringer_recipients "$RECIPIENTS") > "$KEYDIR/$FILE"
|