aboutsummaryrefslogtreecommitdiff
path: root/share/keyringer/recrypt
blob: 92afa99274fa2a9a0c523c0a47c9a0769c8b935e (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/keyringer/functions"
source $LIB
keyringer_set_env $*

# Get file
keyringer_get_file $2

gpg --use-agent -d $KEYDIR/$FILE | gpg --use-agent --armor -e -s $(keyringer_recipients $RECIPIENTS) > $KEYDIR/$FILE