I'm working on loging into an SMF based message board using a WebClient with a cookie collection. So far I've been able to use existing cookies to connect and download pages as needed, however I have to hard code the cookies to do it. Obviously not a good option.
The problem I'm running in to is that in order to have the server generate credentials I have to give it a log in name and a hashed password. The forum login generates them using sha1 hashing with this code:
To generate the same hash as the php version...however it's obviously failing. Somewhere in there I'm missing some encoding or particular formatting that I don't know about. Can anyone point me in the right direction here?
After beating my head against a wall long enough I was able to come up with this, and it does spit out the exact same hash as the existing php code. This should allow anyone to generate a hash for logging into most SMF powered message boards (They seem to have a niche market in games and mods on a global scale.)
I was a bit surprised to notice codeproject itself doesn't actually hash passwords, it sends them in clear text.
I know the basics of documenting my code for intellisense but I have had alot of trouble finding a good tutorial that shows where the info will be displayed etc.
If anyone knows of a link that would be great.
I could probably find this myself if I knew what MS actually called documenting in this way.
I see things in the framework displaying in intellisense the way that I want but I have had trouble figuring out how they did it.
Thanks again for everyone's help.
Well congrats. Looks like you actually found one with some initiative.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
I want to develop a C File using C#3.0 which will create the header file with structures, enums, macros..and all other features of the C..
I want to develop a tool in which i have a GUI and i have to select the options from GUI and accordingly i have to create a C file for the same
So is it possible in C#3.0?
thanks for ur reply..
Basically I am doing a project in which i will be designing a GUI and from there by taking the input I want to generate the C code in a file with ".C" extension. I will be using a different compiler to compile that C File.
So is it possible?
My last team leader used to say "everything is possible with software", and I would agree. The question you really need to ask is whether you are able to translate user input selections into a valid C program.
I would recommend using an XML file to represent your C file. If you manipulate a .c file directly when you add or remove something like and include you have to do a whole lot more to find the correct line and insert or remove the text you want.
If you use an XML file you could have an includes node, and in C# you just add and remove nodes to the tree as you please. You can also have class nodes which in turn have method nodes and so on. Then you use XSLT to turn the XML into a .c file.