Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to hide a password into my code VB.Net
Message
From
25/11/2004 13:20:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00964688
Message ID:
00964745
Views:
8
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform