Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

international characters filename - not encrypting #280

Open
devt20 opened this issue Sep 17, 2021 · 0 comments
Open

international characters filename - not encrypting #280

devt20 opened this issue Sep 17, 2021 · 0 comments

Comments

@devt20
Copy link

devt20 commented Sep 17, 2021

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 argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant