Encrypting array data

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hello, I have and application that I am working on that
takes a string of inmput from the user and searches the
string for "bad" words. If it finds any offensive words
it displays a message to the user that the need to re-
enter thier string with non-offensive language. I would
like to read this data from an array but have the
offending "words" encrypted or read from a file that had
the words encrypted. Basically I want to have it so the
offending words are not shown at all in the code. How can
I go about doing this? Are hash tables my answer in
vb.net?

Thanks in advance!
 
Thanks for the link Cor. After doing some research it
might be easier to convert the whole string to ASCII code
compare the ASCII to the "offensive" words (which are also
in ASCII), then it words are found display message to
user. Is there a quick function to convert string to ASCII
and back again?

Thanks again!

Tom
 
Hi Tom,

ASCW and CHRW or if you can do it with ASCII ASC and CHR

But check this on MSDN again and you find it.

Cor
 
Back
Top