|
Hi Guys,
Im creating my own personal app to store logon accounts and password. Could someone please give me any suggestions on where or how to store that information (and make it secure)?
The thing is I dont wish to use sql i would like it like visual basic 6 where a database is imbedded or something.
or maybe store it in a file but i dont want the data file to be seperate of the app for ppl to open or smth.
any suggestions would be greatly appreciated
Thanks
|
|
|
|
|
GermanDM wrote: dont wish to use sql
you mean the whole the database approach ??
try to use xml file and find away to encrypt the content
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
basically yeah like im using sql at work but i dont have sql at home.
mmm i was thinking xml as well thx
but why do you say if i get mad??
thanks
|
|
|
|
|
GermanDM wrote: but why do you say if i get mad??
That's his signature.
He just haven't figured out yet how to make it look like a signature.
---
b { font-weight: normal; }
|
|
|
|
|
|
I use the small tag to make the text a bit smaller than the message body, and some dashes to make a separator. That is one way to do it.
---
b { font-weight: normal; }
|
|
|
|
|
i can see you Signature
the small tag is your style give me somthing else
man, share some ideas ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
You could always use the Express edition of SQL Server. Otherwise, XML or Access *gasp*. Obviously, use the Framework Crypto classes. Don't try to roll your own.
|
|
|
|
|
Don't be so concerned about anyone viewing the information, just make sure that the information they see is useless.
Store the hash code of the passwords, not the passwords themselves. That way the passwords can not be recreated from the stored information. When you verify a password, get the hash code for the entered password and compare against the stored hash code.
You can use for example MD5 to get a hash code for the passwords. (The GetHashCode method of System.String is not suitable for creating a long term hash code, as it may change between versions.)
---
b { font-weight: normal; }
|
|
|
|
|
Dear sir,
in my application i have using Access database.in that when i try to add new item and then modify those item at same time it show error like concurency violation delete command affected 0 records expected 1 records.so if any one knows means please help me.
|
|
|
|
|
hi all,
i am a beginner in C#.
please can any one suggest me a solution?
I am having two forms.first one is "Login" and Second one is "Entry"
In "Login" form i have a text box "Login Id". i want the value that is entered in this text during login in the next from "Entry".
//===========Login form======
public string strLoginID ;
strLoginID = txtLoginID.Text.Trim();
//==========Entry form==========
frmLogin objLogin = new frmLogin();
string strLoginChk = "";
strLoginChk = objLogin.strLoginID ;
this is the code i have given.during runtime i am unable to get the value stored in the txtLoginID.its getting disposed.i have also called a dispose fuction in the "Entry" form.
please if any one can suggest me another solution
Thanks in advance
sha04
|
|
|
|
|
u can store the loginid in string and can pass it to entry form
and can retrive that value in constructor of entry form
rahul
|
|
|
|
|
Hi,
I have a problem concerning to application data, how to use and what to store.
I have application reports that are installed during application setup.
Inside my application, the users are able to run the reports and also to create new ones.
Now, I'm installing the reports in Application Data\AllUsers\..., and reports created by users, go to the same folder.
My question is: Is this the correct way to do this?
Should my installed reports go to Program Files\... (Application installation folder), and user created report to Application Data\All Users\...?
Does anyone knows best practices for this problem?
Thanks in advance.
NFLR
|
|
|
|
|
I don't think it really matters, in my 'Application Data' folder, apps store things like their settings, playlists, extra data they need etc. But ive also seen all of these things in a programs folder in 'Program Files'
I don't know what the 'Best Practice' is but, i think its OK to put the data in either place
|
|
|
|
|
string url="https://......./file.exe"
.............
try
{
WebClient myWebClient = new WebClient();
myWebClient.Credentials=CredentialCache.DefaultCredentials;
myWebClient.DownloadFile(url,path);
}
But server returns an error:(403) Forbidden
I think that I must to give a sertificate. But how can I do it in WebClient?
Thank you for answer.
|
|
|
|
|
|
You can also check out http://www.codeproject.com/useritems/filedownloader.asp[^].
You almost have things setup correctly, but the CredentailCache.DefaultCredentials will supply the request object with the default system credentials, not the username and password required by the web site.
In order to do that, you will need to do something like this:
Uri uri = new Uri(url);
CredentialCache credCache = new CredentialCache();
NetworkCredential userCred = new NetworkCredential(username, password, domain);
credCache.Add(uri, "Basic", userCred); The "NTLM" in the call is a string that specifies the authentication type. The valid choices are "NTLM", "Digest", and "Basic". You will need to use the type that is appropriate for your specific case.
Also, make sure that you don't need a proxy to be specified.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hi,
I need to run some part of my code in a different security context. For eg. when i try to write to a remote share it throws access denied exception. but i have the username\pwd of that machine. Please help
James Poulose
|
|
|
|
|
Hi,
i am not able to fire xpath queries (SelectSingleNode method with namespace object) to a SOAP xml. It complains about a namespace problem. here is a sample
<soap:envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:body>
<setresponse xmlns="http://tempuri.org/">
<smessageid>EEF0AFFE-A9F5-41A2-AE82-4601E3E2465F
i want the data in the "sMessageID" element. Any idea??
James Poulose
|
|
|
|
|
Your XML snippet isn't visible. Please modify your post by either replacing all < with &lt; or check the "Ignore HTML tags in this message" option beneath the smilie selection. Furthermore it will be helpful to see XPath expression your currently using.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de
|
|
|
|
|
So sorry for the inconvinience caused. Please find the xml below
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetResponse xmlns="http://tempuri.org/">
<sMessageID>EEF0AFFE-A9F5-41A2-AE82-4601E3E2465F</sMessageID>
</SetResponse>
</soap:Body>
</soap:Envelope>
xpath i am trying to use the "sMessageID" element
/soap:Envelope/soap:Body/SetResponse/sMessageID
Regards,
James
|
|
|
|
|
I'm not sure, but I think the problem is that the SetResponse and sMessageID element are in the "http://tempuri.org/" namespace (defined as standard namespace without prefix) but this doesn't reflect in your XPath expression.
Try to use the SelectSingleNode overload that additionally takes a XmlNamespaceManager instance. Add entries for the pair (soap "http://schemas.xmlsoap.org/soap/envelope/") and (somePrefix "http://tempuri.org/") and use the somePrefix in your XPath: /soap:Envelope/soap:Body/somePrefix:SetResponse/somePrefix:sMessageID .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi,
I have already done all the namespace mechanisms known to me.The problem is , if i add a namespace on my own, it should be applicable to all parts in the xpaths, not just the last couple of parts. I think, we need to find a way to specify that "soap" prefix is not a namespace and it is just an element name. Any way thanks for your reply
Regards,
James
|
|
|
|
|
I'm a current MCAD student. Hope someone can help me with a small query. I am working on an application that saves student records to an xml file. Through using an Xml Schema, a dataset generated from the xml schema, a new student row and the WriteXml method, I can save a new record to an xml file.
However, if I display an existing record to a series of textboxes and want to amend the record, how do I save the amended record back to the xml file. If I find a student row using the Student ID, populate the textboxes with the details, then use WriteXml method again, that saves a new record to the file instead of amending the existing records. I therefore conclude this is the wrong way of doing things so I am asking if anyone can point me in the right direction.
Is there another dataset method I should be using that I am not aware of to update an existing record. The NewStudentRow() method adds a new record, is there another method for updating?
Grateful for any help.
|
|
|
|
|
İs there any method taht convert all items in a string array to an int array
String[] --> int[] ???
karanba
|
|
|
|