![]() ![]() This can be useful as a test to compare its results with the results of other programs that claim to convert data to base64. Under OMVS on z/OS you can convert data to base64 with the "uuencode -m" command. ![]() Ami missing something? Are the programs broken? Any help appreciated. The string generated on the mainframe does not match what was returned at the internet sites. I tried both assembler programs and used the same input string that I used at the internet sites. All three sited returned the same results. I tried the data at 3 different internet sites. The data returned does not match what the mainframe base64 assembler program returned. I place a 32 byte string of data into the input area and press the encode button. I have gone to two sites on the internet that do online base64 conversions. They do not seem to be working correctly. >Hello all, I have found two assembler programs that are supposed to convert data to base64. Table as was used in Step 2 above to get the ASCII version of theīase64 string - IOW: Redo Step 2 moving the Base64 output to the Opposed to just displaying it) you need to use the same EBCDIC->ASCII Hitting any of theĢ) MVC the string to a workarea and use TR to convert to ASCII (use aĤ) The result while EBCDIC should be the same display TEXT as that The table would have x'00' if theĬode can be mapped to ASCII and x'ff' if not. Also the output will be theĮBCDIC translation of the ASCII text string that the Internet routineġ) Use a TRT of the EBCDIC input string to verify that all theĬharacters have valid ASCII codes. Since your routine is being passed EBCDIC you mustĬhange the text string to ASCII first. >assembler program or EBCDIC input to the ASCII-based routine.Īssuming that the input is text and you want the same Base64 as wouldīe returned by the Internet Base64 routine, you need to make sure the >conversion programs, then you must present ASCII input to your If you want interoperability with ASCII-based So the problem almost certainly lies with your input not the >It's just the same with base64, but the algorithm is a wee bit more One end, and the matching decoding routine at the other. in email), you can just use the assembler encoding program at Simply want to protect your data from corruption during transmission If you want interoperability with ASCII-basedĬonversion programs, then you must present ASCII input to yourĪssembler program or EBCDIC input to the ASCII-based routine. It's just the same with base64, but the algorithm is a wee bit moreĬomplex. String Abcd to an assembler "byte to hex" routine, you will get back The return character string will be 41626364. Will be passed as the ASCII(ish) representation of the characters, and You pass a string Abcd through a form using your desktop browser, it Imagine a "byte to hex" routine out there on the Internet somewhere. Pass the desired byte value into the algorithm not a character. īoth schemes encode byte values rather than characters. The required space, where base64 multiplies it by only 4/3. Representing byte values than specifying hex digits: using hex doubles Values using a set of characters that is less likely than many to be Base64 is a way of representing arbitrary byte Send email to with the message: INFO IBM-MAINĪlmost certainly. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.įor IBM-MAIN subscribe / signoff / archive access instructions, Please notify the sender immediately by e-mail if you have received this message by mistake and delete this e-mail from your system. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. This message contains confidential information and is intended only for the individual named. If you have received this email in error, please notify the system manager. This email, and any files transmitted with it, is confidential and intended solely for the use of the individual or entity to which it is addressed. Hello all, I have found two assembler programs that are supposed to convert data to base64. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |