Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

encrypt string

0 views
Skip to first unread message

Zertox

unread,
Jun 7, 2002, 7:54:54 PM6/7/02
to
how do i enctrypt a string ??

and maybe decrypt (if its possible, not needed, but usefull)


Pieter Philippaerts

unread,
Jun 7, 2002, 8:08:54 PM6/7/02
to
"Zertox" <zer...@hotmail.com> wrote in message
news:#N1ae6nDCHA.2576@tkmsftngp04...

> how do i enctrypt a string ??

Look at the System.Security.Cryptography namespace; it has implementations
of several well known encryption algorithms.

> and maybe decrypt (if its possible, not needed, but usefull)

If you don't need to decrypt the string, may I suggest using a hashing
method? (for instance MD5 or SHA, both available in the namespace mentioned
above). A hash function transforms a string to another string, but it is
almost impossible to convert the result string back into the original
string.

Regards,
Pieter Philippaerts
http://www.mentalis.org/


0 new messages