Hi, all!
I really need some help here. I am not big on encoding/decoding stuff,
especially cross-platform.
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.SetSecret ("Test")
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,
Sincerely,
Oleg
|
|
0
|
|
|
|
Reply
|
olegsobol (1)
|
12/20/2004 6:23:46 PM |
|
|
0 Replies
573 Views
(page loaded in 0.011 seconds)
Similiar Articles: Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ...Hi, all! I really need some help here. I am not big on encoding/decoding stuff, especially cross-platform. Currently, I need to encode/encrypt a UR... Convert Base64 String to RSA Key - comp.lang.java.programmer ...Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... I use CAPICOM object to encode the string, I ... Algorithm.KeyLength = CAPICOM_ENCRYPTION_KEY ... how do I convert a binary stream to a base64 stream in a pdf file ...Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... how do I convert a binary stream to a base64 stream in a pdf file ... need help parsing PDF documents ... Zlib and VB6... - comp.compressionGIF decoder - comp.compression Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... GIF decoder ... GIF decoder - comp.compression GIF decoder - comp ... calling a VB6 .DLL from java - comp.lang.java.helpBase64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... calling a VB6 .DLL from java - comp.lang.java.help Base64 encode in VB6, decode in Java PROBLEM ... InputStream null using getResourceAsStream - comp.lang.java.help ...Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... InputStream null using getResourceAsStream - comp.lang.java.help ... Base64 encode in VB6, decode in ... Convert pgp public key to java object - comp.lang.java.security ...Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... I use CAPICOM object to encode the ... Convert Base64 String to RSA Key - comp.lang.java.programmer ... ... getResourceAsStream() problem - comp.lang.java.programmer ...Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... getResourceAsStream() problem - comp.lang.java.programmer ... Base64 encode in VB6, decode in Java ... ruby des encrypt - comp.lang.rubyBase64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... ruby des encrypt - comp.lang.ruby Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... BouncyCastle and PGP - comp.lang.java.securityBase64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ... Using Bouncy Castle with PGP files - comp.lang.java.security ... Using Bouncy Castle with PGP files ... Base64 encode in VB6, decode in Java PROBLEM!!! - comp.lang.java ...Hi, all! I really need some help here. I am not big on encoding/decoding stuff, especially cross-platform. Currently, I need to encode/encrypt a UR... Base64 encode in VB6, decode in Java PROBLEM!!!Base64 encode in VB6, decode in Java PROBLEM!!! - Java . This is a discussion on Base64 encode in VB6, decode in Java PROBLEM!!! - Java; Hi, all! 7/23/2012 2:44:10 PM
|