rc2

ASP.Net MVC RC2 ValidationMessage and form field conflict?

I am having problems with MVC RC2 where upon validation failure, the failed field will throw a NullReferenceException when the view is passed back to the user. A short term solution was found: which was to rename the Html.ValidationMessage to be different than the Target Form Field. This works! BUT now the automatic highlighting is di...

ASP.NET MVC RC2 - Why can't I use the normal validation options? e.g. RequiredFieldValidator

I'm trying to validate a basic form, can i not use the standard validation controls? Everywhere i'm looking seems to try and use something like the below <%= Html.ValidationSummary() %> <% using (Html.BeginForm()) {%> <fieldset class="fields"> <legend>Create New Contact</legend> <p> <label for="task">Ta...

ASP.NET MVC 2 RC: How to use the EditorFor to render correct name attributes for a List<>?

In the MVC RC 2 docs, we find: Expression-based helpers that render input elements generate correct name attributes when the expression contains an array or collection index. For example, the value of the name attribute rendered by Html.EditorFor(m => m.Orders[i]) for the first order in a list would be Orders[0]. Anyone care to lin...

How do you add bitmaps to a .RC2 file?

I would like to include common resources into two of my applications. Rather than using a DLL, I figured I could include common resources at compile/link time by making use of a .RC2 file. I've added a load of BITMAP entries as follows to my .RC2 file IDB_CHECK BITMAP DISCARDABLE "\NewGUILib\res\bmpCheck.bmp" My .EX...

RC2 key schedule

Can someone explain how the RC2 key schedule works (particularly the very beginning of it)? i know it uses little endian, but my implementation is not working for any key except "0000 0000 0000 0000" Test Vector Key = 88bc a90e 9087 5a Plaintext = 0000 0000 0000 0000 Ciphertext = 6ccf 4308 974c 267f im assuming that the first thing to...

RC2 decryption using CCCrypt

I'm trying to decrypt RC2 data with only 64 effective bits. Since I can only have 64-bits, it's my understanding that before calling CCCrypt I must use a method to reduce the key down to this many bits. Since I couldn't find any such method in Apple's CommonCrypto library, I am using this keyschedule method I found. These are the metho...

How secure is 64-bit RC2?

In encryption, would two symmetric algorithms be considered to be equal in terms of security if their key sizes are equivalent? (i.e. does a 64-bit RC2 algorithm provide the same exact security that a 64-bit AES algorithm would?) How secure (or insecure) would it be to use a 64-bit RC2 algorithm? How long could I expect it to take for ...