Need help on DES Encryption..

From: Mr Alphaque (alphaque_at_excite.com)
Date: 06/15/04


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..



Relevant Pages

  • Re: CryptAPI(encryption/decryption)
    ... I'm decoding the base64 encoded data before trying to decrypt. ... I misspelled the Private Key as Primary Key. ... and the priavte key in PEM format. ... Is there any variation in the encryption format in openssl compared to ...
    (microsoft.public.pocketpc.developer)
  • Re: CryptAPI(encryption/decryption)
    ... The openssl encrypted data format is in bigendian ... Why there is so many compatibility difference between MS Crypt and openssl? ... I misspelled the Private Key as Primary Key. ... Is there any variation in the encryption format in openssl compared to ...
    (microsoft.public.pocketpc.developer)
  • Re: CryptAPI(encryption/decryption)
    ... The openssl encrypted data format is in bigendian ... Is there any way I can import the PEM formated private key to the MS CSP ... I'm decoding the base64 encoded data before trying to decrypt. ... Is there any variation in the encryption format in openssl compared ...
    (microsoft.public.pocketpc.developer)
  • Re: Custom date format not working in ACC2003
    ... It forces the year to display as 4 digits in dates, ... setting the Format of the control won't rescue it. ... the date fields in reports always format ...
    (microsoft.public.access.reports)
  • Re: Price Data Formatting
    ... I'm loading into the application price data that has a format I do not know ... Since price data format is all dependent on the market selected (say IBM ... rounded/truncated to 2 digits following the decimal as well. ... Dim sStr As String ...
    (microsoft.public.vb.general.discussion)