+ if r.get('security')=='encrypt':
+ with open(rf, 'rb') as f:
+ gpg = gnupg.GPG()
+ status = gpg.encrypt_file(
+ f, None, passphrase=getpass.getpass(rf+' password:'), symmetric=True,
+ output=rf+'.gpg')
+ r.set(const.XLINK+'href', r.get(const.XLINK+'href')+'.gpg')
+ rf=rf+'.gpg'