|
I looked over the RSA documentation and found that they are the same. The RSA standards documents are here:
Look at PKCS #5:
ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-5v2/pkcs5v2-0.doc
The padding method is described in section 6.1.1 and it states that the padding values are equal to the length of the message modulo 8.
So lets imagine the message you want to encrypt is 60 bytes long.
(60 mod 8) is equal to 0x4
So your padding would be:
0x4 0x4 0x4 0x4
Pretty easy huh?
If you take a look at the padding method described in section 10.3 in the PKCS #7 documents it outlines the same padding. You can verify it here:
ftp://ftp.rsasecurity.com/pub/pkcs/doc/pkcs-7.doc
So yes, PKCS #5 is exactly the same padding as PKCS #7.
Best Wishes,
-David Delaune
|
|
|
|
|
Hi David,
I am kinda confused about how the padding will be can you explain how will the code look like?
Thanks,
jayjay
|
|
|
|
|
how can i display popup menu when click on a button on a dialog box?
thanks in advance.
|
|
|
|
|
|
thank you very much Sandip
|
|
|
|
|
Why do you like to ask same question !!!
|
|
|
|
|
REPOST
With 2hrs 4 mins between, no less!
|
|
|
|
|
Hi All,
Could someone please tell me how can i open a txt file with a press of a button (MFC)?
Thanks & Regards,
Anitha
|
|
|
|
|
|
What do you mean by open ? You open the file using std::ifstream and use the >> operators to read data out of it. Is that what you are looking for ?
|
|
|
|
|
AnithaSubramani wrote: Could someone please tell me how can i open a txt file with a press of a button (MFC)?
In Mumbai, we write an MFC program for that. The program will need a window with a button and the button will need a click-event handler. The handler should have code to "open" (whatever that means) the text file.
You probably will need to do something with what's stored within the opened file, but that's another question that you'll post.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: In Mumbai, we write an MFC program for that.
Strange enough, in Rome we do quite the same.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Strange enough, in Rome we do quite the same.
But here story is different we dont need to write it,it can be writes itself.
|
|
|
|
|
CPallini wrote: Strange enough, in Rome we do quite the same.
How Shocking. This is quite an amazing coincidence if you ask me.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Ii dependes to your question do you need to use of ShellExecute or you need to CFile class with EDitctrl ro RichEdit?
|
|
|
|
|
Hi all,
I am using CMenu,
I want to rearrange the menu Items something like Drag and Drop, So can I get any Notification for Drag and Drop from CMenu.
or is there any other way for doing this.. ?
Please provide some example if any buddy can.
|
|
|
|
|
You can do this sort of thing with the windows start menu.
But they don't actually use a windows menu...
So, if even the windows shell team need to make their own menu-lookalike window to do this, I'd assume you can't with the built in menu either.
Looks like you have a lot of work in front of you...
Just how much do you need this feature? Could you have a customise dialog box where you rearrange the order of the menu, *then* change the menu, rather than doing it on the fly?
Iain.
|
|
|
|
|
Hello,
I created a MFC-based ActiveX Control. My goal is to paint some rectangles on dc.
And when user clicks on dc area, I get the clicked point coordinate and adjudge the position of user click is in the rectangles or not.
If the click position is in the rectangles, I jumped a dialog window. If the click is out of the rectangles, nothing happened.
I used OnLButtonDown() to get the clicked point. But strange thing happened.
If I test this ActiveX Unit in the ActiveX Control Test Container, OnLButtonDown() works well and result is the expected result.
But if I packed .ocx file into .cab file and used IE to test, OnLButtonDown() failed. This method didn't be executed when I clicked on the dc area.
The creation step which I referenced is this : http://www.codeproject.com/KB/COM/CompleteActiveX.aspx
I followed the step to create the ActiveX. My control setting of creation step is the same as figure 2. of the referenced html page.
Create control based On : choose STATIC
The option "Activates when visible" and "Flicker-free activation " are checked, others are not checked.
Does anybody can help me to solve this problem ?
My environment : VS2005 SP1 + MS Platform SDK 2003 SP1 + Vista SP1
Thanks
|
|
|
|
|
Hi All
How can i export data n excel?i search forum for export data in excel but i haven't got any example of VC++.Plz help me
Thanks in advance
|
|
|
|
|
|
|
try this: http://xlw.sourceforge.net/
|
|
|
|
|
If you just want to export some text data, then write it as comma separated value (.csv) file . Check this thread[^] for more info.
[Edit]
Or you want to read or export data from excel file? You're question seems confusing.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi want to develope my own antivirus software . can any one suggest me with type of programming I neeed and any help regarding this on windows system .
Trioum
|
|
|
|
|
You have a long way(you must be know about registry,memory,files,tcp/ip,processes/threads,and other info).
Virus Tutorial[^].
|
|
|
|