2014-11-25 101 views
1

我正在構建一個wpf應用程序,並在我的代碼中發送了一封電子郵件,其中包含電子郵件詳細信息作爲用戶名和密碼。從WPF應用程序獲取電子郵件密碼

SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587); 
NetworkCredential basicCredential = new NetworkCredential("username", "password"); 
smtp.Credentials = basicCredential; 
smtp.EnableSsl = true; 
smtp.Send(mail); 

其他任何方式,應用程序的用戶可以得到我的電子郵件帳戶的詳細信息? 如果是有什麼辦法來防止它?

+0

是的,它可能通過反射器@ user3719173 – DevEstacion 2014-11-25 06:30:02

回答

0

是的,他們或許可以通過使用.net反射像dotPeek

您可以防止NET反射雖然我還沒有使用模糊處理那會掩蓋.NET實現細節用它得到它。

混淆:

Obfuscation is the process of renaming this meta-data in an Assembly so that it is no longer useful to a hacker but remains usable to the machine for executing the intended operations. It does not modify the actual instructions or mask them from observation by a hacker.

這裏是淨混淆器的列表,研究他們好,通過使用一個的跌宕起伏的樣子。

List if obfuscators for .NET

0

是應用程序的用戶可以通過反編譯的工具,如反彙編或JustDecompile應用讓你的電子郵件的用戶名和密碼。不要將它們編譯到您的WPF應用程序中。

既可以使用應用程序用戶自己的電子郵件帳戶發送電子郵件,也可以實現WPF應用程序將與之接口的Web服務以發送電子郵件。

相關問題