× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



John:

Before this going farther, can you clarify what you mean when you say "I've tried CCSID 16488 and 1200"? Was that a typo? Even if so, how were you specifying CCSID 16488 _and_ 1200? When you wrote "and", was that just your choice of phrasing? (UCS-2 CCSID is 13488 -- code page 1200.)

Tom Liotta

midrange-l-request@xxxxxxxxxxxx wrote:

7. MD5/SHA hash (JoDoDu)



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