|
Hi
I don't think you have many more options than save the password in an encrypted file with a keyfile that lies around on you pc, because if you want to read encrypted data, you need to know how to decrypt it.
the way i understand it, outlook does the same.. there's probably a file on your hd with the encrypted user - data in it.
you know, the local security is not the main problem here. the problem begins when you send password over the network to a server.
let's say you have a pc with your e-mail passwords saved on and you log on to your mailserver. your e-mail - client does the following:
it connects to the pop-server and says:
user someone@somedomain.org
pass 123456
the whole communication is in cleartext, so everyone can listen! and that's where security acutally IS imporant.
in e-mail (POP) you have 2 possibilities to solve that problem:
1. APOP works like this:
you connect to the pop server and say
apop someuser
the server answes something like:
+OK <1laksjjf23098234987sdj>@somedomain.org
now you take the text behind the +ok and add the password to it, calculate an md5 hash of it and send that to the server. then no one is able to read the password.
i'm not quite sure about the exact procedure of apop but it's well documented in the RFC 1939
2. possibility is to use securePOP (ssl)
just connect to the pop-server over the securePOP - Port with an ssl stream and use the normal pop - commands.
so. short said:
don't do security at the wrong place. it's ok when you encrypt files locally but if YOU can read a file that is locally saved on your pc, anyone, who has physical access to your pc can. security mostly is a network - Problem. so, whenever possible use either secure connections (ssl, ...), or use authentication - methods that allow you to send only (password + salt) - hashes over the network.
greets
m@u
|
|
|
|
|
|
Thx guys - I will rethink the whole issue and will consider your comments while then.
Cheers
|
|
|
|
|
Hi,
I have a small question. I have some variables with almost the same name. For example:
<br />
string message_108 = "fngfh";<br />
string message_109 = "88";<br />
string message_110 = "22";<br />
.....<br />
string message_200 = "ffb";<br />
All I want is to create some kind of method which receives the number of the message (e.g. 110) and that returns the description(value) of that message (message_110).
Can you give me any suggestions.
Do your best to be the best
|
|
|
|
|
Well, this sounds like a homework question. Why would anybody else want to use variable names like that? If you really wanted to use *indexed* versions of the variable, you would use an array of some description.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Actually it's not a homework, and I've tried with arrays and arraylists but I need another way that this could be done.
Do your best to be the best
|
|
|
|
|
karkster wrote: I've tried with arrays and arraylists but I need another way that this could be done
Then we need to look at the bigger picture, because at the moment what you are doing does not make any sense.
|
|
|
|
|
Let me put it in another form. I want to access a Property of a class, but I have the name of the property in a string.
Do your best to be the best
|
|
|
|
|
Use reflection. There are numerous examples on Google on how to do this. Hint - look at GetType().GetProperty(...).GetValue(...)
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Have you thought of using reflection? Reflection won't work with local variables, but will work with properties.
|
|
|
|
|
Thanks. It works with Reflection.
Do your best to be the best
|
|
|
|
|
Rework it into an array or hashtable.
|
|
|
|
|
Use reflection. Because you are using members you will have to use FieldInfo not PropertyInfo.
Of course, like others have mentioned, I would use a hash instead of members.
File Not Found
|
|
|
|
|
Hello everybody.
In my C# project I have a dataGridView with 12 Columns and 16 Rows.
Propertie ColumnHeadersVisible is set true;
How to enter value(text) into Cell between Row headers and Column headers (Cell in Topleft corner) in my dataGridView?
Thanks in advance.
|
|
|
|
|
I only found how to do it via code, not in a visual way, but it does the trick:
dataGridView1.TopLeftHeaderCell.Value = "SomeTextHere";
Hope this helped!
|
|
|
|
|
|
My first solution! I am great. Do I get a prize now?
public object BufferOverFlow<br />
{<br />
__get { return BufferOverFlow; }<br />
__set { BufferOverFlow = value; }<br />
}
|
|
|
|
|
To enter value in the first cell of the first row:
dataGridview.Rows[0].Cells[0].Value = "ABC";
Regards
joonyo's solution is correct. Sorry! I didn't pay attention to the details.
-- modified at 7:57 Monday 19th March, 2007
________________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
hi,
I am having a datagrid with 4 columns and one of the column type is combobox.
I am adding items to that combobox column i am able to add it.
now i want to display the first item in the combobox by default.
Now i am selecting it ,manually
help me pls
With Regards
prasad
|
|
|
|
|
Hi
Set comboObject.SelectedIndex = 0;
0 -> if first item in the list to be displayed by default
1 -> second item ....
Harini
|
|
|
|
|
hi,harini
I am getting in normal combobox property like selectedindex.
But i am using a datagridview in that one my colummn is made as combobox
help me
|
|
|
|
|
Hi
Post your code where you have added values in combo list.
Are you adding values during run time or using code behind file?
if Design time, then you can give selected=true ...
Harini
|
|
|
|
|
hi,this is adding the all clumns but i want to add single row itself.
I am getting error if i add rows saying that value doesn't match for datagridcombox column that is second column.
OpenFileDialog ObjOpenFileDialog = new OpenFileDialog();
ObjOpenFileDialog.DefaultExt = "*.cs";
ObjOpenFileDialog.Filter = "CSharp Script Files |*.cs";
if (ObjOpenFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK && ObjOpenFileDialog.FileNames.Length > 0)
{
Column3.Items.Add(ObjOpenFileDialog.FileName);
//scriptDGView.Rows.Add(true, ObjOpenFileDialog.FileName, "", "");
}
ObjOpenFileDialog.Dispose();
help me pls
|
|
|
|