Thanks for the response laserlight.
To be honest I am confused about the whole encryption subject.
I have a windows based application which delivers a test on-screen to a person. The test data file is downloaded via our PHP website. The application is working sweet as a nut until we switch on the encryption.
The test data file needs to be encrypted and then decrypted by our VB application. I have spent days searching the internet for code both for VB and PHP (obviously not a very good combination as I cannot find anything).
I am using the CAPICOM.dll from Microsoft which supports AES, 3DES, RC2 and RC4 but I cannot get an encrypted string which originates from PHP to decrypt via our VB application and vice-versa. Arrggh!!!!!
CAPICOM supports the following:
Dim encryptdata As New EncryptedData
encryptdata.Algorithm = CAPICOM_ENCRYPTION_ALGORITHM_3DES
encryptdata.Algorithm.KeyLength = CAPICOM_ENCRYPTION_KEY_LENGTH_MAXIMUM
encryptdata.SetSecret ('my password')
encryptdata.Content = 'My secret message'
' Return message as base64
print encryptdata.Encrypt(CAPICOM_ENCODE_BASE64)
Ideally I need help with both ends.
I hope someone can help me further.
Thanks in advance.
BB