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



David:

Base32 is not a "hash" -- it is an "encoding".

A hash (or "digest") usually represents a much longer string or sequence of data by a much shorter representation that is (usually) unique. (Some data may cause some hash algorithms to generate "collisions.")

An encoding is a "representation" of the (raw) data in some other format; "base32" uses 8 bytes to encode (represent) each 5 bytes of original binary data.

So, it;s in C -- big deal -- just compile it into a *MODULE with CRTCMOD and then bind it into your program or *SRVPGM ... =-O

Mark

> On 4/1/2013 9:56 AM, David Gibbs wrote:
On 4/1/2013 8:53 AM, darren@xxxxxxxxx wrote:
Are you just looking to represent a numeric value in base32
notation?
No, I need to calculate a base32 hash from some content.

The routine Mark pointed me to will work, but it's in C. I'd prefer to
have a routine in RPG.

david




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.