Hi Matthias,
..NET provides cryptographics services in class contained in the
System.Security.Cryptography namespace.
First, you need to decide on which type of encryption you would like to use
- basically, there are three: symmetric, asymmetric, and hashing. From what
you said, you should go for either of the first two. Go for symmetric for
more performance, and asymmetric if you need more security.
Once that is decided, you create an instance of the required
CryptoServiceProvider in the required class. For example,
System.Security.Cryptography.RSACryptoServiceProvi der which derives from
System.Security.Cryptography.AsymmetricAlgorithm and then use the required
method (eg. Enrypt). Note that most of these method accept a Stream or an
array of bytes, so you will have to use UTF8 encoding class to convert your
string.
Check out this MSDN link for a detailed implementation
http://msdn.microsoft.com/library/en...yptingdata.asp
Let me know if I could help more.
HTH,
Rakesh Rajan
"Matthias S." wrote:
[color=blue]
> Hi,
>
> I had a look at the vast information on encryption in the MSDN and got
> pretty confused. All I want to do is to encrypt a string into an encrypted
> string and later decrypt that (encrypted) string again to a human readable
> form. Can't be that difficult :).
>
> Could you send me please into the right direction. Thanks in advance.
>
> --
>
> kind regards,
>
> matthias
>
> --
>
> I love deadlines. I like the whooshing sound they make as they fly by.
> [Douglas Adams]
>
>
>[/color]