Tuesday, November 11, 2008

How to export/import CSP session keys in clear

Sometimes, it's handy to export and import plain text CSP session keys without being obliged to wrap them using RSA keys. For that, one can use a specially crafted RSA keys that have their private and public exponents set to "1". Thus, the encryption and the decryption with them always leed to the clear value.
You'll find in the following link an MSDN article that provides a sample code explaining how we can achieve that.

Monday, November 10, 2008

How to clear saved Windows networking passwords

I had a problem connecting to shared VPN network folder because I changed my password but Windows kept using the old one stored in its cache. There was no obvious way to tell Windows to prompt for a new password. After some googling, I found the following command line that displays a dialog showing all the stored credentials and that gives the possibility to delete them :

rundll32.exe keymgr.dll, KRShowKeyMgr

It saved my life!!!