I'm using the CryptoAPI to encrypt and decrypt data in our database. Everything seems to work fine with the exception that CryptEncrypt(...) sometimes returns an encrypted string that is terminated in the middle of the string.
The provider I'm using is PROV_RSA_FULL
For hashing I'm using CALG_MD5
For encryption I'm using CALG_RC2
Is there a known method of encryption (using the CryptoAPI) that will never put a terminator in the middle?
This question is extremely urgent, boss will pull the plug if I can't prove the encryption/decryption works.