I really need some help here. I am not big on encoding/decoding stuff,
Currently, I need to encode/encrypt a URL QueryString which I create in
VB6 (the URL is send to the user via Email). Now the web page is
written in Java (JSP - I hava no choice over this!!)... So I need to
decrypt the QueryString in Java.
I can do it on the same platform no problem (either VB6 or Java), but
when it comes to cross-platform I am having a problem.
I use CAPICOM object to encode the string, I looked all over, for
decoding samples in Java, but all were inconclusive. I also tried
suggestions like using EnvelopedData, to no avail.
Here is my encoding code in VB6 (using CAPICOM.dll):
' Declare and initialize an EncryptedData object.
Dim objEncrpt As New CAPICOM.EncryptedData
'Declare the string that will hold the encrypted message.
Dim encrypted_Qstring As String
objEncrpt.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_DES
objEncrpt.Algorithm.KeyLength = CAPICOM_ENCRYPTION_KEY_LENGTH_128_BITS
objEncrpt.Content = "Encoding test..."
encrypted_Qstring = objEncrpt.Encrypt(CAPICOM_ENCODE_BASE64)
PLEASE, PLEASE help... I would like to see an example of decoding a VB6
encoded string in Java
Thanks in advance,
||12/20/2004 6:23:46 PM