|
Open in Excel 97 manually and see
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
With RSACryptoServiceProvider, we can encrypt a message by a public key and decrypt the messge by a private key. But I need encrypt a message by a private key and decrypt the message by a public key now.
Can anybody give me some advice? Where can I get some reference?
|
|
|
|
|
alantu wrote: But I need encrypt a message by a private key and decrypt the message by a public key now.
You can't do this, it's the fundamental feature of RSA encryption
The only think you can do which does this is signing the data, you can't decrypt it but you can sign it to prove that it came from someone. Take a look at the signing functions in the RSACryptoServiceProvider class.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Actually, you CAN do that, but it does not make much sense Why encrypt a message in a way that everyone can read it?
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
I'm 99% sure you can't encrypt and decrypt in this way because the private key is the decryption key.
(Unless you make your private key the public key and the public key the private key) which would mean your private key is no longer a private key .
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Exactemundo
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Sebastian Schneider wrote: Why encrypt a message in a way that everyone can read it?
The message itself may not be very sensitive, but the recipient needs some proof of where it came from.
If a message is tampered with en route and it has been encrypted with someone's private key and everyone has the public key then the tampered message cannot be read with the public key becuase it won't match the private key.
|
|
|
|
|
I do not know about this particular implementation, but consider the following:
The keys are counterparts. Whatever is encrypted with one key can only be decrypted using the other key.
Your answer: You should be able to simply use the private key as you would use the public key.
Furthermore:
The only difference between the keys is how they are called. One is called "private key" because it is not known to anyone but the owner of the keypair. The other one is called "public key" because it is available from different sources (like keyservers).
What you are trying to do is called "signing". This means, since the private key is only known to one person, anything that is encrypted with that key has to come from the key owner. This is practically not encryption, since anyone (more precisely, considering keyservers, EVERYONE) can use the public key to read the message.
See http://en.wikipedia.org/wiki/Rsa#Signing_messages[^] for more information.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Thanks to everyone. I think I got the problem because I didn't catch the scenario of rsa application. Now the problem has been solved.
|
|
|
|
|
Hello,
I am doing one small project in c#.net.
In this project I want to make left panel sliding.(just like solution explorer in .net UI)
Anybody knows how to do that panel sliding panel?
-------
Thanks and Regards
chaitanya
|
|
|
|
|
Just change it's position or size in a loop.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi my name is Joe and I am creating my own office suite and I like some help: How do I get like a zoomable page view control? Please could someone help!! (
Still hoping.., ;(
|
|
|
|
|
You can set the scale transform on your page, and it will zoom accordingly.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: You can set the scale transform on your page, and it will zoom accordingly.
I mean like a rich text box and how would I get it to a page size and get it to be like Microsoft Word?
|
|
|
|
|
OK, a RTB is another question. Then you'd need to set the font size to scale it, I reckon. I doubt that is how Word does it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi there,
I've started using Regular Expressions recently and it's quite fine, I got the hold of most of the stuff. But what I still don't know is how to make sure a string doesn't contain a certain set of characters. What I'm after is a regex which would find any html tags within some user-input. IsMatch should return false in this case. Any hints?
Thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
I believe if you preface a character group with ^, that means NOT these characters.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'll confirm your belief
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
[^afjz]+
This will find a string with at least one character (+) which does not contain the chars a,f,j and z.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Hi
Is it possible to force DataGridViewCell to repaint? Just refreshing it.
Thanks
Ela
|
|
|
|
|
How about DataGrid.InvalidateCell ?
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
I crated my own class inherited from DataGridViewImageCell. How can I call a method from parent object which is DataGridView? I passed a DataGridView parameter to constructor but when I call grid.InvalidateCell() I have a message "Object refrence not set to an instance of an object"
|
|
|
|
|
I think I am near the solution however how to call a method of grid being on DataGridViewImageCell level?
|
|
|
|
|
Which methods of the grid. Please elaborate.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|