×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Thanks Rory...I'll be checking out the Base64 stuff for another project.

On Wed, Jul 28, 2010 at 9:19 PM, Rory Hewitt <rory.hewitt@xxxxxxxxx> wrote:

Michael,

The code for my Base64 and Base32 routines is at
http://code.midrange.com/685fec73b1.html. I know it uses some old-looking
fixed-format code in the bitform() and charform() routines, but it is
(easily) the fastest implementation of Base64 encoding/decoding I've found.
I haven't benchmarked the Base32 routines, but I'd assume they are equally
as fast.

Although theBase32 routines work fine as-is, you can change data in
Base32Str (lines 107-138) to specify a different order/set of characters -
this version uses the RFC4648 character set: A-Z and 2-7). Just ensure that
there is a space between each 5-character hex string and the related
character (so as to ensure that each array element is 7 characters long).

As I say there, the Base16 routines haven't been written - that's an
exercise for you :)

Rory

On Wed, Jul 28, 2010 at 2:51 PM, Rory Hewitt <rory.hewitt@xxxxxxxxx>
wrote:

OK, so they don't want 0 or O (too similar) or 1, I or L (too similar).

Will this be used on one machine? The reason I ask is that there is a
standard Base32 alphabet (well, there are several, actually), so if they
plan on sending this data to another server (especially a non-i) there
may
be problems...

Anyway, I'll post the code asap.


On Wed, Jul 28, 2010 at 12:10 PM, Michael Ryan <michaelrtr@xxxxxxxxx
wrote:

This was odd (IMO) Rory...here are the digits they wanted to use:

'23456789ABCDEFGHJKMNPQRSTUVWXYZ'

with these characters removed - 0,1,I,L,O.

On Wed, Jul 28, 2010 at 3:05 PM, Rory Hewitt <rory.hewitt@xxxxxxxxx>
wrote:

Oh wait - I have a Base *32 *converter. How does Base 31 differ - is
it
A-Z
+ 2-6 (instead of A-Z + 2-7)?

On Wed, Jul 28, 2010 at 12:00 PM, Rory Hewitt <rory.hewitt@xxxxxxxxx>
wrote:

Michael,

Yeah, I've got some code. I'll post it as soon as I can dig it out.

Rory


On Wed, Jul 28, 2010 at 11:35 AM, Michael Ryan <
michaelrtr@xxxxxxxxx
wrote:

A double secret code for a vendor survey. Maybe other things too,
but
that's
my application.

On Wed, Jul 28, 2010 at 2:25 PM, David Gibbs <david@xxxxxxxxxxxx>
wrote:

Michael Ryan wrote:
Anyone have a Base 31 converter? I could write one, but if
someone
has
one
that's already working, I'd appreciate it.

What's base 31 used for?

david
--
IBM i on Power Systems - For when you can't afford to be out of
business
--
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




--

Rory Hewitt

http://www.linkedin.com/in/roryhewitt




--

Rory Hewitt

http://www.linkedin.com/in/roryhewitt
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




--

Rory Hewitt

http://www.linkedin.com/in/roryhewitt




--

Rory Hewitt

http://www.linkedin.com/in/roryhewitt
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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