|
|
|
|
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
|
|
|
|