Hi All!
I am getting one error where I am trying to do encrypt a file with the following command but its showing error even though I am passing argument recipient one time. Please help me on the same.
rkey: str = 'test_key_id'
with open('my-unencrypted.txt', 'rb') as f:
status = gpg.encrypt(
data=f,
recipients=rkey,
always_trust=True,
output='encrypted.txt.gpg')
For rkey I also tried
rkey = str(imported_keys.fingerprints[0])
but nothing is working and I am getting error like
status = gpg.encrypt(
File "\venv\lib\site-packages\gnupg\gnupg.py", line 1064, in encrypt
result = self._encrypt(stream, recipients, kwargs)
TypeError: _encrypt() got multiple values for argument 'recipients'**
Hi All! I am getting one error where I am trying to do encrypt a file with the following command but its showing error even though I am passing argument recipient one time. Please help me on the same. rkey: str = 'test_key_id'
with open('my-unencrypted.txt', 'rb') as f: status = gpg.encrypt( data=f, recipients=rkey, always_trust=True, output='encrypted.txt.gpg')
For rkey I also tried rkey = str(imported_keys.fingerprints[0])
but nothing is working and I am getting error like status = gpg.encrypt( File "\venv\lib\site-packages\gnupg\gnupg.py", line 1064, in encrypt
result = self._encrypt(stream, recipients, kwargs)
TypeError: _encrypt() got multiple values for argument 'recipients'**