Base 64 encoder/decoder

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Base 64 encoder/decoder

Massimiliano Marsiglietti
Ciao,

Some days ago I was reading the comp.lang.Rexx newsgroup
and noticed someone was asking about availability of encoding
and decoding with the Base 64 algorithm. Since I was already
coding one (porting the original Rexx source code from James
L. Dean work) and since perhaps someone else needs it, I have
put the NetRexx class on my GeoCities web page:

http://www.geocities.com/siliconValley/Park/4218

In the package there is a source file and the .class file.

The class is something like this:

Class Base64
 method encode(input_file = Rexx, output_file = Rexx)
 method decode(input_file = Rexx, output_file = Rexx)

PS three notes:
 a) The thing is obviously freeware.
 b) It needs RXFile -- get it from the same URL.
 c) It will be part of the MBase utils in the MBase package
     starting from release 1.16, but it will still be available
     with source code at no charge from the GeoCities web
     page.

Max

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Base 64 encoder/decoder

K.-P. Kirchdoerfer
On Tue, 17 Feb 98 20:56:42 +0100, [hidden email] wrote:

>Ciao,
>
>Some days ago I was reading the comp.lang.Rexx newsgroup
>and noticed someone was asking about availability of encoding
>and decoding with the Base 64 algorithm. Since I was already
>coding one (porting the original Rexx source code from James
>L. Dean work) and since perhaps someone else needs it, I have

>put the NetRexx class on my GeoCities web page:
>
>http://www.geocities.com/siliconValley/Park/4218

There are at least four base64 en/decoders for java/netrexx:
- the classes in sun.* delivered with the JDK
- the original classes out of the previous package from the original
author
- the classes from Cryptix
- the classes from the JavaMail API

And most of these support also uuencode/uudecode.

We've seen and fixed a bug in the uudecode-class in the sun.*
classes, so if anyone is interested, send a mail to
[hidden email]

>
>In the package there is a source file and the .class file.
>
>The class is something like this:
>
>Class Base64
> method encode(input_file = Rexx, output_file = Rexx)
> method decode(input_file = Rexx, output_file = Rexx)

This is of course very simple; do you plan to do the same for
uudecode/uuencode?
I'd like to switch from other classes to classes written in netrexx
and supported by helpful members on this list.

kp
--
K.P.Kirchdoerfer                      Voice:   +49 431 15479
24116 Kiel                            E-Mail: [hidden email]

The Mission Is Terminated (TG 1982)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

RE: Base 64 encoder/decoder

Massimiliano Marsiglietti
Ciao,

Howard wrote:

>I got the following error message when I tried to access your web page:

>The page you were looking for,
>http://www.geocities.com/siliconValley/Park/4218, does not exist.

>Probably just a typographic error.

Yes, sorry.. Seems like geocities' www server is case sensitive.

This does work here:
http://www.geocities.com/SiliconValley/Park/4218/

Max

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Base 64 encoder/decoder

Massimiliano Marsiglietti
Ciao,

Dion wrote:

> > Some days ago I was reading the comp.lang.Rexx newsgroup
> > and noticed someone was asking about availability of encoding
> > and decoding with the Base 64 algorithm. Since I was already
>
> You do know there's an undocumented one in all Sun licensed VMs,
> right?

Yes (you wrote it to the c.l.rexx newsgroup), but the word
undocumented makes me feel uncomfortable. Beside, the direct port of
the simple encode and decode methods took as little as five minutes.
(Very few lines have changed from the original)

> The undocumented ones also en/decode to a String (or Rexx in uor
> case) and a buffer of bytes....just FYI...

Well the thing I am going to include in my product (actually it is
for a vertical market customization of MaxBase) has to be a bit more
sophisticated than that anyway, so I took someone else's public
work and I am extending it. Thanks for the info, though!

Max
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Base 64 encoder/decoder

Massimiliano Marsiglietti
In reply to this post by Massimiliano Marsiglietti
Ciao,

> This is of course very simple; do you plan to do the same for
> uudecode/uuencode?

I don't think so, because I need precisely the Base 64 thing for a
project. (Of course if there is at least some demand for it I can
change my mind)

Max
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Base 64 encoder/decoder

dIon Gillard/Multitask Consulting/AU
In reply to this post by Massimiliano Marsiglietti
[hidden email] wrote:
>
> Ciao,
>
> Some days ago I was reading the comp.lang.Rexx newsgroup
> and noticed someone was asking about availability of encoding
> and decoding with the Base 64 algorithm. Since I was already

You do know there's an undocumented one in all Sun licensed VMs, right?

> The class is something like this:
>
> Class Base64
>  method encode(input_file = Rexx, output_file = Rexx)
>  method decode(input_file = Rexx, output_file = Rexx)
The undocumented ones also en/decode to a String (or Rexx in uor case)
and a buffer of bytes....just FYI...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>