Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Why are there LFs in my base64? Post 302397054 by SilversleevesX on Saturday 20th of February 2010 03:10:57 PM
Old 02-20-2010
Found my mistake.

So much for keeping to specification and syntax!
Openssl output files in base64, with the newlines, work perfectly well when embedding images in html...

...if you remember to suffix the base64 code with double-quotes and a square close bracket.

Sometimes the most obvious things elude you. How yellow is the egg on my face, btw?

BZT

Last edited by SilversleevesX; 02-20-2010 at 04:14 PM.. Reason: Noun-verb agreement (and missing a descriptive clause)
 

7 More Discussions You Might Find Interesting

1. Programming

gunzip and base64 decode a string

I am writing a C program to get messages from a JMS queue into a string variable and then write them to a database. The messages are compressed (gzip) and encoded (base64), so I need to be able to perform gunzip and base64 decode inside the C. I don't want to write any of the messages to file so... (2 Replies)
Discussion started by: handak9
2 Replies

2. UNIX for Dummies Questions & Answers

I'm looking for someone who have Base64 binary

I need to install the base64 encryption method on a UNIX machine under AIX5.2. I've received a tar file but it is only C source , can you help me please. (sending me a binary base64 or to compile my source) Thanks by advance (3 Replies)
Discussion started by: Bruno_LAMOUR
3 Replies

3. UNIX for Dummies Questions & Answers

not able to run base64 exe

Hi, I have copied base64.exe under base64-1.3 folder and i am trying to run base64.exe from another folder called Request. But i am getting the following error message. mga.ksh: base64: not found Please let me know how to execute the base64.exe from a directory where it is not installed. ... (0 Replies)
Discussion started by: lotus123
0 Replies

4. UNIX for Dummies Questions & Answers

mailx saved messages are unreadable (base64)

I am trying to parse emails sent from a blackberry. I am using fetchmail to download email through IMAP from my exchange server and then forward to local Linux mail. (This part works fine.) When viewing and saving messages sent as plain text from Outlook, everything works fine. However, when... (1 Reply)
Discussion started by: Squeakygoose
1 Replies

5. BSD

LFS-like thing, but with *BSD?

Hi, do you know, is there any thing like Linux From Scratch, but for a BSD operating system? A tutorial or guide to learn (and build) the system inside out? Would be pretty cool IMO. :D Blackbird (1 Reply)
Discussion started by: Blackbird
1 Replies

6. UNIX for Beginners Questions & Answers

Ldapsearch returning base64 encoded results

So my ldapsearch works great, except for some results I found today. My search is: /usr/lib64/mozldap/ldapsearch -T -h 10.1.1.1 -p 3891 -D "uid=datapower,ou=People,dc=blah,dc=com" -w xxxxxx -b "ou=Certs,dc=blah,dc=com"... (0 Replies)
Discussion started by: primerib
0 Replies

7. Shell Programming and Scripting

Base64 conversion in awk overlaps

hi, problem: output is not consistent as expected using external command in AWK description: I'm trying to convert $2 into a base64 string for later decoding, and for this when I use awk , I'm getting overlapped results , or say it results are not 100% correct. my code is: gawk... (9 Replies)
Discussion started by: busyboy
9 Replies
BASE64(1)							   User Commands							 BASE64(1)

NAME
base64 - base64 encode/decode data and print to standard output SYNOPSIS
base64 [OPTION]... [FILE] DESCRIPTION
Base64 encode or decode FILE, or standard input, to standard output. -w, --wrap=COLS Wrap encoded lines after COLS character (default 76). Use 0 to disable line wrapping. -d, --decode Decode data. -i, --ignore-garbage When decoding, ignore non-alphabet characters. --help Display this help and exit. --version Output version information and exit. With no FILE, or when FILE is -, read standard input. The data are encoded as described for the base64 alphabet in RFC 3548. When decoding, the input may contain newlines in addition to the bytes of the formal base64 alphabet. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream. AUTHOR
Written by Simon Josefsson. REPORTING BUGS
Report base64 bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> COPYRIGHT
Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
The full documentation for base64 is maintained as a Texinfo manual. If the info and base64 programs are properly installed at your site, the command info coreutils 'base64 invocation' should give you access to the complete manual. GNU coreutils 7.1 July 2010 BASE64(1)
All times are GMT -4. The time now is 05:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy