What makes you think that I assume MD5 is an enyption/decryption algorythm? What I wand is to encrypt the checksum of some content hashed using MD5 algorythm. I don't want to encrypt raw data using MD5 algorythm.
EmoBemo
Posts
-
How can i encrypt MD5 hash with a private key ? -
How can i encrypt MD5 hash with a private key ?I have have a buffer with a check sum which I want to encrypt with the private key in a PKCS#12 certificate using the RSA public-key algorithm with a 1024-bit key lengthis used. I have tried using CryptoAPI in the following sequence: 1. CryptAcquireCertificatePrivateKey - returns HCRIPTPROV 2. CryptGetUserKey - using the returned HCRIPTPROV returns HCRYPTKEY 3. CryptEncrypt - saying 'Bad key' when used the returned from 2 HCRYPTKEY. Also I cannot understant where should be the password for the private key passed. :confused: I'll be gratefull if somenone has an idea how to do that
-
PNG ImageIf you are using the MFC Feature Pack you can use the CPngImage class. You can simply Load PNG image from the resource and use it as CBitmap because CPngImage inherits it. Other way is to use the CImage class which is part of ATL but it can load PNG only from file. As far as I remember CImage::LoadFromResource can load only bitmaps. IMHO CPngImage is more convenient when you just need HBITMAP of the PNG and CImage is more convenient when you are going to blit it on some HDC. But if you need to load from resource CPngImage is your class.
-
AVCODEC_OPEN and AVCODEC_ENCODE_VIDEO fails...Try calling
avcodec_init();
avcodec_register_all();near av_register_all();
-
How to check if microphone connect to the machine in run time ?How come my DELL Inspiron B130 detects device when I plug something in the microphone plug and shows a dialog? And also how come my Skype understands when a microphone is plugged in or out ? :confused: