|
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
|
|
|
|
|
I created my own classes
public class ImageCell : DataGridViewImageCell
{
public ImageCell(DataGridView grid)
{
this.grid = grid;
}
........
private void animate(object o, EventArgs e)
{
DataGridView dgv = (DataGridView)grid;
dgv.InvalidateCell(this); /// there is an error
}
}
and
public class ImageColumn : DataGridViewColumn
{
public ImageColumn(DataGridView dgv)
{
this.CellTemplate = new ImageCell(dgv);
this.HeaderText = "";
this.Width = 25;
this.Resizable = DataGridViewTriState.False;
}
}
In my application when I have DataGridView I just add ImageColumn object as new column passing DataGridView object to the constructor:
ImageColumn imgCol = new ImageColumn(m_DataGridView);
m_DataGridView.Columns.Add(imgCol);
I do not like to pass such a parameter to the constructor. However how to call InvalidateCell in ImageCell class?
thanks
Ela
|
|
|
|
|
You should be able to get a reference to the DataGridView from the conveniently named property DataGridView in your class since you inherit from DataGridViewColumn / Cell and both these eventually inherit from DataGridViewElement which has a property which provides a reference to the DataGridView .
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
|
|
|
|
|
What a fool I am. How couldn't I see such a beatifull protperty - just DataGridView.
Many thanks for help.
It is blinking now but there is something with gif. It is displayed as x - as it was no gif. However I think it is another problem.
Many thanks one more time
Ela
|
|
|
|
|
Don't worry I had a similar problem where I spent a whole day ripping code apart trying to find the answer and in the end it was looking me in the face
The X is probably because it can't find the gif or there was an error in the drawing code (similar to when a control crashes on the designer).
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
|
|
|
|