You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to encrypt the filename which has international characters, for eg : "abc_越智プロファイルーwork.docx" using below code. But it fails.
#Code
with open(r'C:\home\encryption\abc_越智プロファイルーwork.docx', "rb") as f:
status = gpg.encrypt_file(
file=f,
symmetric='AES256',
passphrase='abc@123',
recipients=None,
output=r'C:\home\encryption\abc_越智プロファイルーwork.docx.gpg',
)
I am trying to encrypt the filename which has international characters, for eg : "abc_越智プロファイルーwork.docx" using below code. But it fails.
#Code
with open(r'C:\home\encryption\abc_越智プロファイルーwork.docx', "rb") as f:
status = gpg.encrypt_file(
file=f,
symmetric='AES256',
passphrase='abc@123',
recipients=None,
output=r'C:\home\encryption\abc_越智プロファイルーwork.docx.gpg',
)
Error:
gpg: can't create
C:\home\encryption\abc_?????????work.docx.gpg': Invalid argument [GNUPG:] FAILURE symencrypt 33587248 gpg: symmetric encryption of
[stdin]' failed: Invalid argumentThe text was updated successfully, but these errors were encountered: