Need help on DES Encryption..
From: Mr Alphaque (alphaque_at_excite.com)
Date: 06/15/04
- Next message: Ken Tucker [MVP]: "Re: How to pass data between two forms?"
- Previous message: Jeff Bennett: "Re: scrollable viewport control creation"
- Messages sorted by: [ date ] [ thread ]
Date: 14 Jun 2004 22:07:37 -0700
I got the problem doing the DES data encryption in Visual Basic, the
result format i get is the 64-bit digits long in hexadecimal format.
But what i customer wanted is the format result which should be in
16-bit digits hexadecimal. My customer is using the IBM mainframe and
Cobol doing the DES encryption.
My program needs to encrypt a password string AND a series of string
(source data) where each of the strings contain 16 hex digits long.
Customer site will then get my encrypted data and they will decrypt my
data by using their DES encryption code.
Below is the example:
String to be encrypted = 123456789012FFFF and password string =
0123456789ABCDEF
Result after encyption = 25147783DOB53387 (This is the expected result
which i hope to obtain which is 16 digits hex format)
BUT the result i obtain is 64 digits hexadecimal which i believe is
wrong.
Anyone have any idea how do get the encryted result which is 16-bit
digits hexadecimal long ?
thanks..
- Next message: Ken Tucker [MVP]: "Re: How to pass data between two forms?"
- Previous message: Jeff Bennett: "Re: scrollable viewport control creation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|