473,802 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I hide the SMTP authentication data?

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

MailMessage MyMail = new MailMessage()
MyMail.Fields.A dd("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e", "1")
MyMail.Fields.A dd("http://schemas.microso ft.com/cdo/configuration/sendusername", "UserName")
MyMail.Fields.A dd("http://schemas.microso ft.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.
Nov 16 '05 #1
1 2250
You could encrypt/decrypt it. You could store it in a database and read it
out as needed. You could hide it in a longer string and write your own
secret way of extracting it which would deter only the average users. It
all depends on how secure you want it. Look into RSA encryption, there are
classes for these. See .Net TripleDESCrypto ServiceProvider ()

JIM
"Sharon" <Sh****@discuss ions.microsoft. com> wrote in message
news:8C******** *************** ***********@mic rosoft.com...
I'm sending mail form my C#/.NET assembly, and for that I'm doing
authentication like that:

MailMessage MyMail = new MailMessage();
MyMail.Fields.A dd("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e",
"1");
MyMail.Fields.A dd("http://schemas.microso ft.com/cdo/configuration/sendusername",
"UserName") ;
MyMail.Fields.A dd("http://schemas.microso ft.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.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
4635
by: Sharon | last post by:
I wrote an assembly in C#/.NET that includes some personal information. But this information can be revealed by opening the assembly in tools like the ‘Microsoft .NET Framework IL DASM’ and ‘Reflector’. I do not want to expose this code. How do I hide it? -- Regards Sharon G.
3
5590
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email account. I was using optimum online service with smtp server as “mail.optonline.net”. I can receive email correctly. Now I switch to verizon DSL. I change my smtp server accordingly as
4
2473
by: Tushar | last post by:
Please help: I found some of the following information in messeges in this group but I would like someone to confirm them please. I would like to use the following web-services / ASP.Net code to be used in an intranet environment: MailMessage Message = new MailMessage(); Message.To = ... .... SmtpMail.SmtpServer = ...
2
2448
by: T.Archer | last post by:
The host a client wants to use requires authentication to relay messages. How do I set the authentication (username/password) before using the smtpmail.send(mailmessage) method? Surely this must be a common thing to do. I have been utterly unable to google an answer. --Tony Archer
2
1317
by: scorpion53061 | last post by:
I would like to know how you guys are handling this issue...... Some ISP's are now requiring authentication when using SMTP (such as orcsweb) while others are refusing to accept plain text authentication (charter.net for instance) but will send the SMTP mail without providing authentication while others such as Comcast I cannot seem to accept anything.
34
18278
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
7
7752
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee free edition for anti-virus. I use an ISP provider from my country and according to them I do not need to perform authentication while sending mails through their SMTP address. Thus I am using external SMTP server. I don't have IIS installed...
7
2774
by: John Drako | last post by:
Currently, I run postfix on my own server to send message from my site (password requests, account activation notices and other messages). I have phpMailer on the server and all the messages (currently about 1000 messages are sent daily) are sent by SMTP through postfix. I'm contemplating moving this particular site's email to Gmail. Is it possible to send mail through Gmail's servers with authentication and everything?
4
2993
by: eruth | last post by:
Hi all, I'm trying to send an e-mail from a vb.net web form. I can create the message, but when it comes to actually sending it I get the following error. "Mailbox name not allowed. The server response was: Server policy dictates you must authenticate first " So far as I can tell, my code is doing what it's meant to, but I'd appreciate someone casting an eye over it to make sure. This is based on a couple of examples found through...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10309
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10289
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9119
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7600
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6840
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4274
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.