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

Option to choose encryption algorithm #46

Open
devberkay opened this issue Feb 21, 2025 · 5 comments
Open

Option to choose encryption algorithm #46

devberkay opened this issue Feb 21, 2025 · 5 comments

Comments

@devberkay
Copy link

devberkay commented Feb 21, 2025

I need to both encrypt and sign my S/MIME emails. When sending them via SMTP, I explicitly require AES-256 encryption, but I haven’t been able to find a way to do it.

@e3rd
Copy link
Member

e3rd commented Feb 21, 2025 via email

@devberkay
Copy link
Author

It's for SMIME @e3rd

@e3rd
Copy link
Member

e3rd commented Feb 21, 2025 via email

@devberkay
Copy link
Author

I'd love to, i already tried doing it but couldnt make it, here you can see cryptography package introduced following method to its PKCS7EnvelopeBuilder:

set_content_encryption_algorithm

in the doc it says, Added in version 43.0.0. Currently, cryptography is at version 44.0.1 and for some reason, this function is not available, it is available only in their main branch. So i couldn't figure out a way to use that.

If there any other way to enforce AES256 encryption , i'd like to know your insights, so i can prepare a pr.

I'm really in hurry and been stuck on this problem for 3 days, i have used hundreds of configurations (both in .py and .ts/node environments) to write a firebase cloud function to send a smime encrypted+signed mail but i cant succeed, i'd be really thankful if someone experienced like you could take a 5 minute on this ( i can contact you thru mail if available). It is a task with extremely short description but i just cant do it and stuck.

@e3rd
Copy link
Member

e3rd commented Feb 21, 2025 via email

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

2 participants