Connecting Tech Pros Worldwide Forums | Help | Site Map

Encrypting a String

Michael C
Guest
 
Posts: n/a
#1: Nov 16 '05
Hi all,

I've actually seen a post answering a question similar to the one I'm about
to ask - but can't seem to keep more than 14 days worth of posts on my PC at
a time. I've spent the last hour searching a local Web based newsreader
site for the old post, with no luck. So please don't get too bent out of
shape if this is a redundant post :)

All that being said, I want to use .NET's built-in cryptography classes to
encrypt and decrypt a string. All the examples I've found seem to encrypt a
file as opposed to just an in-memory string variable.

Thanks in advance, and sorry for the redundancy,
Michael C., MCDBA



Michael C
Guest
 
Posts: n/a
#2: Nov 16 '05

re: Encrypting a String


Never mind. For anyone that's interested, I found an excellent example that
uses the DPAPI to manage your encryption keys on the MS website. URL:
http://msdn.microsoft.com/library/de...secnetht09.asp

Thanks,
Michael C., MCDBA

"Michael C" <michaelc@nospam.org> wrote in message
news:b355d.7827$6X1.10972237@news4.srv.hcvlny.cv.n et...[color=blue]
> Hi all,
>
> I've actually seen a post answering a question similar to the one I'm[/color]
about[color=blue]
> to ask - but can't seem to keep more than 14 days worth of posts on my PC[/color]
at[color=blue]
> a time. I've spent the last hour searching a local Web based newsreader
> site for the old post, with no luck. So please don't get too bent out of
> shape if this is a redundant post :)
>
> All that being said, I want to use .NET's built-in cryptography classes to
> encrypt and decrypt a string. All the examples I've found seem to encrypt[/color]
a[color=blue]
> file as opposed to just an in-memory string variable.
>
> Thanks in advance, and sorry for the redundancy,
> Michael C., MCDBA
>
>[/color]


Closed Thread


Similar C# / C Sharp bytes