Farhan wrote:

> It's sat night and i am getting brain dead. I am encrypting username and
> password using System.Security.Cryptography, but problem is that i have
> hard-coded Key in the code, which is not safe. How will i hide the Key from
> developers to see?

I have no idea what your application of cryptography is used for. The
easiest way to prevent developers from "knowing" the key is to not use a
fixed key (i.e., encrypted based on a user-entered passphrase).

If we knew more about the exact problem you were trying to solve, we might
be able to give more exact help. :)

Brad

--
Read my web log at http://www.quality.nu/dotnetguy/

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to