>Thanks Cetin, the password i need to mantain in my code is not related to a sqlconnection, is a pasword to decript files with my application...
>In VFP for example was able to store the string "MYPWD" using for example chr(X) chr(XX) etc
>Now i want to do something in VB.Net because i dont want to have so clear in my code the password
>
>Thanks again
Oh I see you want a limited hiding. Then what about you store a few non related strings and build your pw with IndexOf getting a char from one of multiple strings. Looks like:
string[] myDummyStrings = {"thinner", "gets", "ice"};
int[] myVals1 = {3,1,2,3,1};
int[] myVals2 = {2,6,3,1,5};
You get the idea? There is a pw there.
Cetin