home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxendeco.zip
/
BASE64.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
2001-07-15
|
953b
|
29 lines
/* +------------------------------------------------------------------------+
| encode/decode routines. 2001-07 Dave Lewis |
+------------------------------------------------------------------------+ */
If RxFuncQuery( 'rxLoadFuncs' ) Then
Do
Call RxFuncAdd 'rxLoadFuncs', 'RXAPI', 'rxLoadFuncs'
Call rxLoadFuncs
End
teststring = "Try this on for size "||'0D0A'x||"Should be multi lines",
"We need a long one to see if we get a soft break "||'0D0A'x||"in the right spot.",
"It should break before 76 bytes of data. Including the CRLF."||'0D0A'x||,
"And some special characters !@#$%^&*((*&)(*&[]{}"||'0D0A'x||,
"."||'0D0A'x||"From : These cause problems"||'0D0A'x
encoded = rxBinToBase64( teststring )
Say encoded
Say rxBase64ToBin( encoded )
encoded = rxTxtToQuoted( teststring )
Say encoded
Say rxQuotedToTxt( encoded )