Encrpyt Simple String

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In my app I have a MessageBox like the following:

this.MessageBox.Show("Hello");

Question: How do I encrypt the String "Hello" in C# (2.0), so that the user
can't "directly" see the String, for example while using Lutz Roeders .NET
Reflector?
What about using SecureString?
 
If you encrypt the string ... they will still have the code to decrypt the
string after using reflector no, not much of a jump for them to decrypt the
string no?

Cheers,

Greg
 
DHarry said:
What about using SecureString?

SecureString is for in-memory secure strings, to ensure they don't get
written to disk in the page file, for example.

-- Barry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top