GoldenFapple
Verify Signed Message with Server's Public Key?
Set the CspParameters.KeyContainerName to a constant string that is unique to your application.
Then set the RSACryptoServiceProvider.PersistKeyInCsp member to true.
Then after you generate a key, that key will be stored in the windows keystore for that specific windows user the application is running under, for the specific KeyContainerName that you set.
When another call comes in and the controller goes to instantiate the key/cryptoprovide, by passing in the same constant string for KeyContainerName under the same user, it will load the same key from the windows keystore.
25 replies
Silly OOP question about constructors
Your not going to be able to do the last parameter,
Collar collar = new Collar()
because its not a compile time constant.
buuuut, you can do something like this:
public Dog() : this("NoName", 1, 0.3, new Collar()) { }
This will conflict with this constructor however:
public Dog() : this("NoName") { }
As that already defines a constructor with no parameters.7 replies
Graphic Editor using WinForms
It looks like you have those, essentially, but as radio buttons.
So maybe a toolbar instead with these things mentioned. And same idea as with the radio buttons: only one of them allowed to selected at a time.
Justification for this: Its a common interaction pattern users are familiar with. e.g. mspaint and the like
6 replies