Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

selil

@selil
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Attempting to implement Keyed MD-5 Hash
    S selil

    THANK YOU! Too! I'm working on a coding project for a class (500 level course) to implement a secure email (schema) login procedure. I was looking to learn C# since I had heard about how easy it is to utilize for fast development. The hardest thing to learn has been where certain libraries are located. Doing the windows programming was a breeze, but I beat my head trying to figure out where this particular issue was (I implicitly trusted the MS code). I used to do a lot of programming in VC++, and Java and everybody seems to think C# is the wave of the future (RFC 2095 and RFC 2104) so to increase the level of difficulty I switched. So I'm writing an IMAP server and IMAP mail client for my first C# project. I have three days to complete the assignment in a new language, against sketchy RFC's, and it must be fully functional by tomorrow morning... Yee haw. Thanks again! -------------------- Sam

    C# csharp cryptography help question html

  • Attempting to implement Keyed MD-5 Hash
    S selil

    Heath Stewart wrote: It's best you don't claim bugs, especially when you've only been programming C# for 1 week. Check out the documentation, search the 'net for similar findings, and ask someone to verify (like on this forum), then declare you've found a bug and report it to the proper ch First. Thank you very much. Second. I was using the example code from Microsoft on their implemenatation of the correct code (which is still obviously wrong according to the RFC). I did check the net for this very topic (very thin and obscure task). I did ask somebody to verify but they were looking at the entire code and easily missed the problem. Third. It was an obvious small error on my part that I should have caught. I just never figured that Microsoft would provide a sample of an RFC that wasn't compliant. That is exactly why I thought to ask the kind folks here at Code Project for help. Fourth I wasn't claiming a bug and was looking for the exact validation you provided in that the Microsoft code as supplied was wrong and not something deeper. They should change that one item to make it RFC compliant. Fifth. Thanks again. Sorry if you thought I was calling your baby ugly. Haven't you ever beat your head on the keyboard looking at the obvious to somebody else while completely missing the EASY! answer? Again thank you very much for the help.... Now to finish the project. And, I think C# is pretty darn nifty......Thanks again, and again.... Really... -------------------- Sam

    C# csharp cryptography help question html

  • Attempting to implement Keyed MD-5 Hash
    S selil

    Code project C# guru’s :confused:, I am attempting to implement RFC 2095 ( http://www.ietf.org/rfc/rfc2095.txt ) I’ve found what I believe is an error in the crypto library for C#. Now be kind I’ve been coding C# for exactly 1 week :omg:, and it has been about 7 years since I coded in production :eek:. The last time I coded was in VI on Unix. This is just one of the methods I’m attempting to implement in this project. The rest of the project includes an SMTP server, and verification schema. I’m implementing the procedures in a C# program found in RFC 2095, and using the CRAM algorithm found in http://www.ietf.org/rfc/rfc2104.txt . The test data strings found in RFC 2095 include a share key string “tanstaaftanstaaf” and the challenge “1896.697170952@postoffice.reston.mci.net” these test values should produce according to the test in the RFC the hashed hex output “b9 13 a6 02 c7 ed a7 a4 95 b4 e6 e7 33 4d 38 90” . In the following program from the MSDN code library (ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconextendingkeyedhashalgorithmclass.htm) I get the following output from the output string B9 13 A6 2 C7 ED A7 A4 95 B4 E6 E7 33 4D 38 90 on the test case. And, of course the fourth hex pair has dropped the leading zero :doh:. That would be wrong according to the Keyed MD-5 hash algorithm :mad:. The leading zero should be left in place. From my feeble attempts at debugging it looks like it is either the output of the HEX according to Microsoft or internal to the crypto library. Either way how do I make sure that it does not drop that leading zero X| ? Thanks in advance, Sam From the MSDN Code Library with RFC 2095 Edits //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// using System; using System.Security.Cryptography; public class TestHMACMD5 { static private void PrintByteArray(Byte[] arr) { int i; Console.WriteLine("Length: " + arr.Length); for (i=0; i

    C# csharp cryptography help question html

  • complex read
    S selil

    O’ fishy fishy fishy…. Heck I’ll bite…. On the face of things your argument appears to be “I’m uneducated, people who are educated write, therefore people who write should write for the uneducated.” Alright so as a syllogism it breaks down and perchance so does your logic. As a poster on Code Project with over 2200 posts you contribute to an online community. You most likely write to the conventions of the community you associate with, and I imagine those conventions are fairly stringent. Why would you cast aspersions on academic writers who are writing not for you, but their community? Similar to how you stumble or look for information within academic resources academics may be reading your writing in other venues. Why look there’s one now… Shhhh they spook easily. Academic papers and dissertations are written not for the public, but for a fairly small community who may number in the dozens or fewer. Academic papers are not about teaching, but about communicating to the scholar’s community research. The peer review and referee process for most scholarly papers is stringent, ego shattering, and stressful. A PH.D dissertation may have as few as a dozen reviewers who all are TRYING to make the material as difficult to comprehend as possible. Remember that a dissertation is expanding the science within its topic, and it is a final exam. Within your rant are the obvious feelings of a young inexperienced individual not necessarily comfortable with the world. Why the sour grapes over education? I usually see people who are belittling the significant investment in time, effort, and will power that higher education requires as people who don’t have those qualities. A degree is not proof that a person is smarter than anybody else. A diploma should represent a person’s investment in themselves. Those who denigrate the educational institutions and specifically the students are themselves with out hope. In your rant you suggest that you have never attended college. I’m not sure how the higher education system works in Canada, but I’m willing to bet it is quite similar to the United States. When you are sitting in class as a student you don’t understand the level of commitment an instructor has put into a class. Attempting to explain left-hand or right-hand grammars to freshman is fairly easy when compared to explaining the concepts of polymorphism and inheritance. You can be fairly certain that the discussion is not very high on the academic thesaurus level. Then what would I know.. 4 posts? ---

    The Lounge question com design security learning

  • Yikes!
    S selil

    IBM Travelstar HD’s are known to make a lot of noise and there is a flash upgrade that will silence them fairly quickly. Unfortunately the label on a HD often is not even a clue on who actually made. Welcome to the global economy. Some quick thoughts. “Clicking” or “snapping” is the read write head moving out and back into park position rapidly. Not necessarily a bad thing, but not good for the drive health. “bumble bee buzzing” a loud angry sound is usually a bearing dieing. You will soon have bad things within minutes or hours. “Screech” or “Scratching” sounds indicate that the read/write heads have touched down and you have a nice paper weight (date usually unrecoverable except in a clean room). “Whirring” or “light buzzing” is normal for fast drive access. Laptops due to cooling issues are becoming more and more the victims of heat induced hard disk failures. This is literally of epidemic proportions in Dell 5K and 8K series lap tops. Thermal management seems to be a lost art. There are only two or three moving parts that make noise in a hard drive. Read/write heads move on the armature, and the motor drives the disks. Systems tools that allow you to monitor CPU and HD temps are a good thing for laptops. -------------------- Sam

    The Lounge question

  • Vaio Laptop Problem - Anyone seen this before?
    S selil

    JohnnyG wrote: I'm having a problem with my Sony VAIO laptop. Even though I have the power settings for a couple of different profiles set for the AC (plugged in) settings as never hibernate, it periodically goes into hibernation. How hot is the laptop getting? All of the issues you describe could be caused by heat, and a forced suspend. -------------------- Sam

    The Lounge java sysadmin tools help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups