473,395 Members | 1,756 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,395 software developers and data experts.

Encrypted email - is there a specific solution?

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 before
being sent to me.

(Or should I just use RSA asymmetric encryption, and keep the private
key only on my machine?)

Thanks,

-Frameworker.
Nov 18 '05 #1
4 1327
If its just sending mail to yourself, then an asymetric method (like RSA you
suggested below) would be ideal. Given that only you have the private key
(and of course the shared server has the public key), then you can encrypt
the data and either send it to yourself as an attachment or base64 encode it
and simple place it in the body of your email.

Either way its quite secure. If you need to start sending to others apart
fro yourself, thats where it can get a bit trickier.

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Framework fan" <te**************@hotmail.com> wrote in message
news:f1**************************@posting.google.c om...
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 before
being sent to me.

(Or should I just use RSA asymmetric encryption, and keep the private
key only on my machine?)

Thanks,

-Frameworker.

Nov 18 '05 #2
If its just sending mail to yourself, then an asymetric method (like RSA you
suggested below) would be ideal. Given that only you have the private key
(and of course the shared server has the public key), then you can encrypt
the data and either send it to yourself as an attachment or base64 encode it
and simple place it in the body of your email.

Either way its quite secure. If you need to start sending to others apart
fro yourself, thats where it can get a bit trickier.

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Framework fan" <te**************@hotmail.com> wrote in message
news:f1**************************@posting.google.c om...
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 before
being sent to me.

(Or should I just use RSA asymmetric encryption, and keep the private
key only on my machine?)

Thanks,

-Frameworker.

Nov 18 '05 #3
Thank you.

If System.Web.Mail.MailMsg.Body takes a string, and I have an array of
bytes that I would like to encode in base64, what is the syntax to
assign the byte array to the mailmsg body please?
"Paul Glavich [MVP - ASP.NET]" <gl**@aspalliance.com-NOSPAM> wrote in message news:<uZ**************@TK2MSFTNGP09.phx.gbl>...
If its just sending mail to yourself, then an asymetric method (like RSA you
suggested below) would be ideal. Given that only you have the private key
(and of course the shared server has the public key), then you can encrypt
the data and either send it to yourself as an attachment or base64 encode it
and simple place it in the body of your email.

Either way its quite secure. If you need to start sending to others apart
fro yourself, thats where it can get a bit trickier.

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Framework fan" <te**************@hotmail.com> wrote in message
news:f1**************************@posting.google.c om...
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 before
being sent to me.

(Or should I just use RSA asymmetric encryption, and keep the private
key only on my machine?)

Thanks,

-Frameworker.

Nov 18 '05 #4
Regarding the base64 encoding, is it just simply a case of using:

Convert.ToBase64String and Convert.FromBase64String

I thought it would be more difficult than that!
"Paul Glavich [MVP - ASP.NET]" <gl**@aspalliance.com-NOSPAM> wrote in message news:<uZ**************@TK2MSFTNGP09.phx.gbl>...
If its just sending mail to yourself, then an asymetric method (like RSA you
suggested below) would be ideal. Given that only you have the private key
(and of course the shared server has the public key), then you can encrypt
the data and either send it to yourself as an attachment or base64 encode it
and simple place it in the body of your email.

Either way its quite secure. If you need to start sending to others apart
fro yourself, thats where it can get a bit trickier.

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Framework fan" <te**************@hotmail.com> wrote in message
news:f1**************************@posting.google.c om...
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 before
being sent to me.

(Or should I just use RSA asymmetric encryption, and keep the private
key only on my machine?)

Thanks,

-Frameworker.

Nov 18 '05 #5

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

Similar topics

8
by: Philipp Brune | last post by:
Hi all, the following problem occured to me and I hope somebody can help me : I need to implement an encrypted File download with a PHP script on the server side and a c# client application....
10
by: sffan | last post by:
I am new to database programming and was curious how others solve the problem of storing encrypted in data in db table columns and then subsequently searching for these records. The particular...
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.
12
by: Dave Bailey | last post by:
I need to store an encrypted connection string in the web.config file. I have found several examples on the Net but nothing specific as to how to accomplish task. Thanks in advance, Dave
2
by: Leonardo D'Ippolito | last post by:
Hi! I have two .NET win apps that need to communicate on a TCP/IP network. 'App A' must ask 'app B' if it's allowed to do some task, and 'app B' must authorize or prohibit it. How can I do...
2
by: Roland Riess | last post by:
Hi NG, I don't know if I'm just missing the forest through the trees, or if it is really that complicated: I want to save a password that is entered/changed through a text control in a form....
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...
8
by: robert | last post by:
Hello, I want to put (incrementally) changed/new files from a big file tree "directly,compressed and password-only-encrypted" to a remote backup server incrementally via FTP,SFTP or DAV.... At...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
0
by: Sid DeLuca | last post by:
I'm modifying the WSE2 HOL sample to develop my web service. I'm able to get the client application's username token encrypted on the way out (outputTrace.webinfo), but not on receipt from the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.