Author Topic: (C#) Encrypt Email using RSAES-OAEP with AES-128 CBC and SHA256 not work  (Read 886 times)

Chilkatuser

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hello,

the example https://www.example-code.com/csharp/email_encrypt_rsaes_oaep_aes_128_sha256.asp not work for me.

If i set email.OaepPadding = true -> Outlook 2013 cant find my certificate and cant open the mail.
If i set email.OaepPadding = false -> everything is ok!

What can i do?

I use 9.5.0.69.

I have created a temporary certificate with which you can test it.
« Last Edit: December 14, 2017, 08:38:56 AM by Chilkatuser »

Chilkatuser

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: (C#) Encrypt Email using RSAES-OAEP with AES-128 CBC and SHA256 not work
« Reply #1 on: December 14, 2017, 08:34:45 AM »
https://www.example-code.com/csharp/smtp_rsaes_oaep_aes_128_sha256.asp

this will also not work. I cant open this mail in Outlook.
And if i reveive the mail with chilkat mail.GetEncryptedByCert() is null.

Why this is null?

If i set email.OaepPadding = false, then everything is ok!

I have tested it with two different certificates.

Please help me.
« Last Edit: December 14, 2017, 08:39:44 AM by Chilkatuser »

Chilkat

  • Administrator
  • Full Member
  • *****
  • Posts: 103
  • Karma: +6/-0
    • View Profile
Re: (C#) Encrypt Email using RSAES-OAEP with AES-128 CBC and SHA256 not work
« Reply #2 on: December 20, 2017, 08:59:16 AM »
Chilkat has solved all problems relating to OAEP.  If you need a pre-release, please send email to support@chilkatsoft.com.    (Pre-releases are not available in all programming languages due to the effort required to produce the build, and also given that the next version of Chilkat, v9.5.0.71, is due to be released in a few weeks..)