I have a requirement to be able to duplicate a hash produced by a Windows
.NET system (Unicode, I believe):

// initialize the SHA1 cryptography routine

SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider();

// compute the hash of the buffer

byte[] hash = sha1.ComputeHash(buffer);



I have followed info found here, and at other users websites, using the MI
Cipher function.  I think part of the problem is that my counterpart's
algorithm is possibly based on 16-bit Unicode being encoded, whereas I must
use CCSID 37 converted to CCSID 819.  I've tried CCSID 16488 and 1200
(listed as UNICODE on the AS/400.)  I've tried sending in the hex
representation of the 16 bit Unicode, eg, '2003' = x'0032003000300033', with
NO CCSID conversion.  I just can't quite seem to match the hashes.  Has
anyone had to match a hash with a Unicode system with a hash produced on the
AS/400 before?



Thanks,

John Dunn



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.