|
No seperate versions of windows, but seperate versions of CryptoAPI.
Some countries have special laws and classify cryptographics as military technology.
I don't have any links for you, but I'm sure you will find very much information using google. Just use "AES" as keyword.
Don't try it, just do it!
|
|
|
|
|
hi.. plz if u can give to me a project made by vc++ for blowfish or aes algorithms for encryption easy to understand.. i tried to use that one in code project it's soo good but not easy to me i want to trying to cood it by my self i couldn't,,, if u can help me sorry for asking alot..
thanks forr all
|
|
|
|
|
Hi,
there are several libraries that can be used. Most of them supports a lot of algorithms.
The most used should be Crypto++ but I'd like cryptlib also (in my opinion it's easier to use and to add in VC projects ).
Imho it's really hard to understand how encryption works starting from code, so I suggest you to start from some RFC or something similar (a good example would be rjindael but you can "google" for a lot of other example )
Bye,
Francesco
|
|
|
|
|
thanks alot for ur help ...
i choosed algorithm called blowfish and i get some info about it but i didn't found good code vc++ or discrition about it..
if u can help me to found simple project to try it and see hoe it is working ...
it will be big help for me and thanks again for information..
for all
|
|
|
|
|
There are several example in codeproject using blowfish
this and
this are two implementation
Bye,
Francesco
|
|
|
|
|
|
hi.. plz if u can give to me a project made by vc++ for blowfish or aes algorithms for encryption easy to understand.. i tried to use that one in code project it's soo good but not easy to me i want to trying to cood it by my self i couldn't,,, if u can help me sorry for asking alot..
thanks forr all
|
|
|
|
|
or for (des) data encryption standarad.. code or algorithm
|
|
|
|
|
Hi, I'm writing an app in which I want to suspend the PC and then wake up sometime later. Having trouble with the wake up (it doesn't happen !!)
My test code is as follows:-
LARGE_INTEGER liDueTime;
HANDLE hWaitTimer;
hWaitTimer = CreateWaitableTimer(NULL,FALSE,"Test timer");
liDueTime.QuadPart=-1200000000; // 2 minutes;
BOOL rc = SetWaitableTimer(hWaitTimer,&liDueTime,0,
pTimerProc,NULL,TRUE);
rc = SetSystemPowerState(NULL,TRUE); // 2nd parm is Resume
DWORD dwError;
if(rc == 0)
dwError = GetLastError();
// WAIT HERE !!!
if (WaitForSingleObject(hWaitTimer, INFINITE) != WAIT_OBJECT_0)
{
printf("WaitForSingleObject failed (%d)\n", GetLastError());
return 3;
}
else
{
printf("Timer was signaled.\n");
return 100;
}
I have run the code with the SetSystemPowerState() commented out, and the timer signals O.K. So any idea about why it won't wake up ? (Tried it on Win2000 and Win98 (needed ultimately for the later) Thanks !
Doug
|
|
|
|
|
After SetWaitableTimer() call, do a GetLastError() and see if it returns ERROR_NOT_SUPPORTED which means "The system does not support a restore".
Note: SetWaitableTimer() succeeds even if the system dosen't supports a restore from a suspended power conservation mode
suhredayan There is no spoon.
|
|
|
|
|
Hi, Just added an unconditional GetLastError() call after the SetWaitableTimer() call as you suggested. It returned 0 (ERROR_SUCCESS) on the Win2K system, so I guess that restore IS supported. Any other ideas that can throw some light on the matter ?
Doug
|
|
|
|
|
As far as I know a suspended PC does not execute user-mode code, so you can only wake up the PC with a kernel-mode driver!
Don't try it, just do it!
|
|
|
|
|
Alexander M. wrote:
As far as I know a suspended PC does not execute user-mode code, so you can only wake up the PC with a kernel-mode driver!
Can you suggest how I can persue this particular direction ?
Doug
|
|
|
|
|
I have absolutly no idea. You have to study the DDK, maybe you'll find a description there.
Don't try it, just do it!
|
|
|
|
|
Seems mildly ironic that you can suspend the system in user-mode code, but need to be "priviliged" by being in kernel mode to wake it up !!!!!! I'm now persuing a hardware solution to the timing/wakeup problem rather than peruing kernel-mode code (which sounds quite daunting and not really worth the undoubtedly steep learning curve to satisfy my needs !! Thanks for your help !
Doug
|
|
|
|
|
Hello!
all password managers I know handle passwords with standard Windows edit controls, which have the password flag set. As soon as the dialog with the edit control is closed, the password storage memory is erased by the application of course. But *while* the dialog is open, the passwords are stored in plain-text in the process memory.
Some people seem to worry about the password being visible in the memory space of the applications process. You normally cannot avoid this when using standard Windows controls, they are just designed like this. Also, the security risk of this is minimal anyway, since Windows normally doesn't move the memory of the current foreground process to the swap file.
Now, I've found some way to completely hide the password (at least I believe so). It won't even show up in the process memory.
If you're interested, try this:
http://www.dominik-reichl.de/filepool/SecEditExTest.zip[^]
Of course, no new features without new limitations. Character selections aren't allowed in this secure edit control, i.e. you cannot select any range of characters. You can paste information *into* the edit control, but you cannot copy something *out* of it (try it with one of the many edit control spies available on the net). If you want to delete all the text in the control, press Shift-Home or Shift-End.
The edit control at the top is a standard Windows edit control. When you enter something here, it should be visible in the process memory. Below this control, there is the secure edit control. The things you enter here should not appear in the process memory!
When you press the "Show Password" button on the left of the new secure edit control, a message box will show you the password. NOTE: while the message box is shown, the password is visible in the process memory space of course! That's normal! Close the message box and your password should be gone again (though it is entered in the edit control).
Please, test this control thoroughly. Especially, search for entered strings in the process memory space (with WinHex for example). Test it thoroughly with special characters (high ANSI characters). I'm especially looking forward to a report if the control works with multi-byte systems (Chinese system for example).
And yes, if everything goes right, I'll write an article here at CodeProject about this control
Thanks and best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Send me the source code, then I'll tell you how secure that control is.
Don't try it, just do it!
|
|
|
|
|
|
Looks interesting!
The code is secure in 2 ways:
1) Every character is encrypted.
2) The characters are spreaded over the whole process memory because of dynamic memory allocation.
That's really nice!!!
The only feature that you should implement is selecting characters in the text box.
Don't try it, just do it!
|
|
|
|
|
Hi everybody, i want to create an a system tray icon in my program, so i write the next code in my dialog's OnInitDialogFunction() ,
NOTIFYICONDATA tnid;
tnid.cbSize = sizeof(NOTIFYICONDATA);
tnid.hWnd = (HWND)this;
tnid.uID = IDR_MAINFRAME;
tnid.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
tnid.uCallbackMessage = WM_MOUSEMOVE;
tnid.hIcon = m_hIcon;
tnid.szTip[0] = 'Hi';
Shell_NotifyIcon(NIM_ADD, &tnid);
the problem is that the icon appears in the taskbar but as soon as i move my mouse over it it dissapears,please help.
i'd also like a context menu to appear when i rightclick on it.
Regards
m0n0
|
|
|
|
|
Giorgi Moniava wrote:
NOTIFYICONDATA tnid;
Make it member of class instead of Local!
Giorgi Moniava wrote:
i'd also like a context menu to appear when i rightclick on it.
serach Cp for TrayIcon
cheers,
Alok Gupta
|
|
|
|
|
"Make it member of class instead of Local!" could you be more explicit??
Regards
m0n0
|
|
|
|
|
I want to say that, Make you NOTIFYICONDATA variable member of Class instead of local variable of Function
because as function end it looses it memory, so you looses your icon.
cheers,
Alok Gupta
|
|
|
|
|
HI Giorgi!
you can look at this article where i have taught how to handle system Tray Icon!
http://www.codeproject.com/system/ShutDownAlarm.asp[^]
hope that work well for you!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
tnid.szTip[0] = 'Hi';
That does not work!!!!
szTip is an array, and you can't set it that way!!!
First of all, strings in C++ are written with ", not '.
You can never copy an array by assign it to another one!
To copy a string, use strcpy.
strcpy( tnid.szTip, "Hi" );
That should work!
tnid.hWnd = (HWND)this;
Also wrong! (I assume that the this ptr is a CWnd)
tnid.hWnd = GetSafeHwnd();
Using WM_MOUSEMOVE as callback is also not very intelligent!
Define a custom message, e.g. #define WM_TRAYICON WM_USER + 1
You should really learn the programming language first before starting to code!
Don't try it, just do it!
|
|
|
|