|
|
plz try this article:
http://www.codeproject.com/useritems/Encrypt_an_string.asp
> use RC2 algoritm
First and the Foremost: FIGHT TO WIN
About Me
|
|
|
|
|
I usually develop my own encryption methods, two methods to encode and decode using very basic ways, like getting the integer value of the string, play with it, store it. Do the opposite when retrieving it.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
The biggest problem with crypto is keeping the secret secure.
There are plenty of libraries available that will do Rijndael/AES. Including some stuff that ships with .Net
I've used the .net libraries a few times in the past, although if i could find a properly peer reviewed open source verison i'd be much happier using it.
XOR should only be used for the very lightest crypto requirements, it's very oldhat and can be easily broken.
I suppose it depends what you want to do. XOR will hide your girlfriend's phone numbers from your wife but it wouldn't hold up very long against the forces of the RIAA trying to prove that you once looked at a copy of that DVD key.
Russell
|
|
|
|
|
How can I disable dots (as show in below given link) from studio.net2005 editor? these dots are displayed instead of space.
thnkx in advance
http://www.geocities.com/lxcitesplanet/dotsinvseditor.jpg
First and the Foremost: FIGHT TO WIN
About Me
|
|
|
|
|
I've never seen that before. Perhaps the Visual Studio will be suitable for this question.
|
|
|
|
|
Hari Om Prakash Sharma wrote: disable dots
do you mean replace??
yourString.Replace('.','');
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Edit/Advanced/View White Space
|
|
|
|
|
Thanks a lot!!!
First and the Foremost: FIGHT TO WIN
About Me
|
|
|
|
|
DOH .. How the hell did you understand his question
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I guess by looking at the picture!
|
|
|
|
|
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
good editors have the option of showing characters that normally are hidden,
such as space, tab, carriage return. It exists in Word, in Visual, etc.
|
|
|
|
|
hello guys..my program is about drawing some shapes like (lines ,polygons..etc)my nightmare is after drawing the shapes i wanna to save them as atext which contains the (start point , end point , color ,..etc)
iam using V.S 2003...i will apprecaite any help .
Regards ;
|
|
|
|
|
mr jets wrote: i wanna to save them as atext which contains the (start point , end point , color ,..etc)
The first step is to define the format of the text. I presume this will be a text file that will have to be read back in at some point.
|
|
|
|
|
yah bro..thats right i wanna to save my drawing as text file..but iam stuck..!
|
|
|
|
|
1. First decide which all properties you want to save to the text file.
2. Create a structure for holding data for the shape using these properties.
3. Design the structure in such a way that it will cover most common properties for all shapes.
4. When you draw the shape, copy the values to the instanece of structure.
5. Finally write the structure to the file.
How about this?
|
|
|
|
|
mmmm..sounds look cool my friend..but i didnt get any thing ..do u know any usefull article about this..i will be greatfull.!
Regards ;
|
|
|
|
|
|
thanks alot bro..but we are not on the same page..ok assume that i draw aline i want after clicking on save button..it will save the (start point , end point ,RGB ,...)of that line in text file..!!
|
|
|
|
|
Let me make it simpler for you...
When you are drawing line, you have its information like start point, end point, RGB.
Create a structure e.g. structLine which contains members for holding start point , end point (each of appropriate type).
Copy the values to objLine of type structLine before you call DrawLine Method.
When you click Save button
// create a writer and open the file
TextWriter tw = new StreamWriter("line.txt");
// write a line of text to the file
tw.WriteLine(objLine.StartPoint.ToString() + ", " objLine.EndPoint.ToString()); // mention all values of struct
// close the stream
tw.Close();
I recommand you override the method ToString() method of structLine in which you provide way to represent the structure in sting format.
Now is this okey?
|
|
|
|
|
yah its much better..thanks bro..i will be more geatfull if u recommended me any usefull article about that..cuz iam dealing with alot of shapes ..not just lines...thanks again for ur time.
cheers;;)
|
|
|
|
|
http://msdn2.microsoft.com/en-us/library/ms384775(VS.71).aspx
U'll find lots of good stuff in it
|
|
|
|
|
I don't know whether any article exists for such case, but I can give you some more hints about this as you know now how to deal with lines.
Take out a list of values that are required for all the shapes that you are using.
Create a structure e.g. structShape which contains members for holding all the values.
Include a shapeType field in the structShape which will let you know what type of shape you are drawing.
It might be the case that a shape would not contain all the properties. So copy values that are available and keep the remaining blank (or something like "NA" which means not applicable for this type of shape).
I recommand using structure because if you want to read again from that file you can read in the same sequence that you wrote to the file.
Your shapeType attribute will decide which shape is to be drawn.
Is that fair enough?
Let me know if any problem in this.....
|
|
|
|
|
Hi all
i'm trying to check all items in a list view through a CheckAll checkbox option. now the problem is that when i click on the check all checkbox it gives me the NullReferenceException in the following code
private void AttributeList_ItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e)
{
attribute_list=attribute_list+"["+AttributeList.SelectedItem.ToString()+"],";
selected_columns.Add(AttributeList.SelectedItem.ToString());
}
the exception arises in the first line of the method
all i'm trying to do is save the checked items in the list view.
awaiting all replies
Saira
|
|
|
|