How can I hide the SMTP authentication data?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Sharon (Sharon_at_discussions.microsoft.com)
Date: 03/03/05


Date: Thu, 3 Mar 2005 02:27:03 -0800

I’m sending mail form my C#/.NET assembly, and for that I’m doing
authentication like that:

MailMessage MyMail = new MailMessage();
MyMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
MyMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "UserName");
MyMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", " password");

And by using tools like the ‘Microsoft .NET Framework IL DASM’ and
‘Reflector’, this user name and password can be seen Easley.

Is there a way to put the name and password in same hidden way?
How can I hide this data form disassembly tools?

-- 
Regards
Sharon G.


Relevant Pages

  • Re: How to hide code in the assembly?
    ... I’m sending mail form the assembly, and for that I’m doing authentication ... MailMessage MyMail = new MailMessage; ... Sharon G. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to hide code in the assembly?
    ... I’m sending mail form the assembly, and for that I’m doing authentication ... MailMessage MyMail = new MailMessage; ... seen Easley. ...
    (microsoft.public.dotnet.languages.csharp)