473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Encrypted mail in ASP.NET

Hi folks,

i have to build a web-application for the internet where the user
gets a form where he can fill in his name, adress and so on.
He also can provide a credit number.
The data will be sent over SSL.

On the server i want to put all the stuff into a mail and send it
to the company. This should also be encrypted somehow.
I read some articles about encrypted mail, but didnt really find a
fitting answer.

Does the .NET Framework provide any classes for that?
Has anyone done anything like that?
Any other ideas how i could resolve that problem?

thx in advance
Michael
Nov 18 '05 #1
3 2522
There is no easy way to send encrypted e-mail from ASP.NET, you would have
to write that functionality yourself or buy something that does that for
you. I assume you want to accomplish two things by encrypting the e-mail:
protect the data in transit and prove that the e-mail is authentic and
unmodified. Encrypting an e-mail means that only the recipient can view the
plaintext message. To do this, the recipient must provide you with his or
her public key, if they have one. Signing an e-mail means that the recipeint
can prove that the message came from you and has not been modified since you
signed it. Signing requires that you make your public key available to the
recipient.

Obviosuly, implementing encryption and signing means you need to modify your
application to handle and store user private keys. Another problem is that
to sign outgoing e-mails you need to keep your private key on the web server
and the web application needs to be able to read it. This could be a risk if
someone ever compromised your web server. If that happened, the intruder
could send fake e-mails and sign them with your signature.

You can sign and encrypt e-mails this with PGP and S/MIME. Using S/MIME
requires functions from CryptoAPI that the .NET framework doesn't expose. It
is a fairly complex process if you are not familiar with encryption and
public key concepts. As for PGP, I have seen people integrate that into
their application by shelling out to the gpg or pgp command line. Here are
some links for that:
http://www.15seconds.com/issue/011002.htm
http://www.codeproject.com/csharp/gnupgdotnet.asp

One problem with PGP is that the recipient needs to have it installed on
their end to view the plaintext message.

Although I would love to see every web site use encrypted e-mail, it just
isn't practical or pervasive enough to implement yet. Furthermore,
encrypting an e-mail doesn't guarantee the safety of the data once it is
sitting in the user's inbox. The best solution is to simply not send
sensitive information in an e-mail. One alternative is to send the use a
temporary link to a web page that displays the information to the user over
an SSL connection.
Mark Burnett
Hacking the Code: ASP.NET Web Application Security
http://www.hackingthecode.com
"Michael" <go****@kuli24.de> wrote in message
news:26**************************@posting.google.c om...
Hi folks,

i have to build a web-application for the internet where the user
gets a form where he can fill in his name, adress and so on.
He also can provide a credit number.
The data will be sent over SSL pgp

On the server i want to put all the stuff into a mail and send it
to the company. This should also be encrypted somehow.
I read some articles about asp.net encrypted mail, but didnt really find a
asp.net fitting answer.

Does the .NET Framework provide any classes for that?
Has anyone done anything like that? csharp
Any other ideas how i could resolve that problem?
session cookie token asp.net web application security
thx in advance vb.bet
Michael

Nov 18 '05 #2
Is mail the only transport method available?

If you have to go with mail make sure that you're using a method where you:
1. Encrypt the data with the recipient's public key.
2. Sign the message with your private key.

..NET has many encryption classes in System.Security.Cryptography, but there
is no direct support, AFAIK, for any encrypted email standards.

"Michael" wrote:
Hi folks,

i have to build a web-application for the internet where the user
gets a form where he can fill in his name, adress and so on.
He also can provide a credit number.
The data will be sent over SSL.

On the server i want to put all the stuff into a mail and send it
to the company. This should also be encrypted somehow.
I read some articles about encrypted mail, but didnt really find a
fitting answer.

Does the .NET Framework provide any classes for that?
Has anyone done anything like that?
Any other ideas how i could resolve that problem?

thx in advance
Michael

Nov 18 '05 #3
Hi Mark, hi Brad,

thank you very much for your very detailed answers.
It rather seems to me, that the encrypted mail stuff is pretty
complicated and probably to much effort.
I will try to enrypt the data and save it in a database.
The recipient will get the decryption key to decrypt the data.
This seems to be the cheapest and probably safest way to handle the
problem.

hope it works:)

greetz
Michael
Nov 18 '05 #4

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

Similar topics

1
by: Steve Jenkins | last post by:
Hi, Wonder if anyone can help. I have a client who would like to have a form-to-mail on their website, but, are concerned about the security of emails sent by such a form. In the passed I...
30
by: zn | last post by:
If I place a form for product ordering on my website, what scripting technology or CGIs can I use to encrypt the e-mail sent to my e-mail account with the order information? Thanks.
1
by: BillK | last post by:
Hi - I am looking for a solution to a clients requirement. They want to distribute a database of info on CD, which user can search on selected fields and results will be displayed. The data and...
2
by: DDK | last post by:
I really wish there were some examples explaining how to create a forgot password email link system when you encrypt a password in a database and use ASP.NET/C# preferably. Since the password is...
3
by: Todd Gruben | last post by:
I am trying to send some encrypted data from a php application to be decoded in a .Net application. Both apps encode/decode a given string but generate different encrypted results. Anyone have...
6
by: Carolyn Vo | last post by:
Hi there! I have a string that was encrypted in Java using the classes DESKeySpec, SecretKeyFactory, SecretKey, and Cipher. It looks like using the SecretKeyFactory puts a transparent layer on...
3
by: Framework fan | last post by:
Hello, Can encrpyted email be sent from an ASP.NET application? I'm just looking to encrypt a small key, then send it from a shared server to myself, but I'd like the data encrypted for safety...
0
by: VBTricks.de.vu Webmaster | last post by:
Hello, I'm trying to implement an encrypted communication with a PHP script. All the basic stuff (HTTP protocoll, base64) is working. The only problem is that this method works only for the...
2
by: aalmakto | last post by:
Please help, I am having trouble using curl_setopt to post to an encrypted form. The form values are <form action=save_text.cgi method=post enctype=multipart/form-data> I have isolated the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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...
0
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 project—planning, coding, testing,...

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.