There's no native function that I know of, but there are a tons of examples.
Like Tom mentioned, you will need to explory the Cryptography libraries.
Having swam through the rough waters of Crypto recently, let me mention a
few things...
Cryptography !=Cryptography . Why, well, there are many different
algorithms and they aren't all equal. Given enough computer power, any code
can get cracked. However, if you only need it hidden for two days, you'll
certianly need less power than if you need something hidden for a month or
year. Every boss will say "I want the strongest crypto available"...until
the realize that encrypting something that only needs hidden for a day on a
really large file might have some serious performance implications. Then
the next answer is "Well, our stuff isn't that important to hackers so just
get something that will keep the average joe out of it"... All of this
oversimplifies the context.
So, the first question you want to ask is "How strong do I need my
encryption to be?" You have a choice among providers and from there,
whether or not you want Symmetric or Asymmetric algorithms. Each has
benefits and downsides. Generating a Public and Private Key certainly gives
you more strength, but it's also more difficult to deal with...particularly
if you have a ton of users and you want to generate keysets dynamically....
Here's a link I found helpful..
http://www.devx.com/security/Article/7019/0/page/1 But I'd recommend
Googling on Cryptography VB.NET or C# and checking out what's out there...In
it's simplest form, it's very easy to implement..and in it's most complex,
it's quite a pain...so you may want to read up on it in depth and make a
decision from there.
HTH,
Bill
"MrKrich" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
Does VB.Net provide function to encrypt/decrypt text file?