Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

base64(3erl) [linux man page]

base64(3erl)						     Erlang Module Definition						      base64(3erl)

NAME
base64 - Implements base 64 encode and decode, see RFC2045. DESCRIPTION
Implements base 64 encode and decode, see RFC2045. EXPORTS
encode(Data) -> Base64 encode_to_string(Data) -> Base64String Types Data = string() | binary() Base64 = binary() Base64String = string() Encodes a plain ASCII string into base64. The result will be 33% larger than the data. decode(Base64) -> Data decode_to_string(Base64) -> DataString mime_decode(Base64) -> Data mime_decode_to_string(Base64) -> DataString Types Base64 = string() | binary() Data = binary() DataString = string() Decodes a base64 encoded string to plain ASCII. See RFC4648. mime_decode/1 and mime_decode_to_string/1 strips away illegal charac- ters, while decode/1 and decode_to_string/1 only strips away whitespace characters. Ericsson AB stdlib 1.17.3 base64(3erl)

Check Out this Related Man Page

libapache2-mod-perl2-2.0.7::docs::api::APR::Base64(3pm) User Contributed Perl Documentationlibapache2-mod-perl2-2.0.7::docs::api::APR::Base64(3pm)

NAME
APR::Base64 - Perl API for APR base64 encoding/decoding functionality Synopsis use APR::Base64 (); my $clear = "foo" my $encoded = APR::Base64::encode($clear); my $decoded = APR::Base64::decode($encoded); my $len_enc = APR::Base64::encode_len(length $clear); Description "APR::Base64" provides the access to APR's base64 encoding and decoding API. API
"APR::Base64" provides the following functions and/or methods: "decode" Decode a base64 encoded string $decoded = decode($encoded); arg1: $encoded ( string ) The encoded string. ret: $decoded ( string ) The decoded string. since: 2.0.00 "encode" Encode a string to base64 $encoded = encode($clear); arg1: $clear ( string ) The unencoded string. ret: $encoded ( string ) The encoded string. since: 2.0.00 "encode_len" Given the length of an unencoded string, get the length of the encoded string. $len_enc = encode_len($len_clear); arg1: $len_clear ( integer ) the length of an unencoded string. ret: $len_enc ( integer ) the length of the string after it is encoded since: 2.0.00 See Also mod_perl 2.0 documentation. Copyright mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. Authors The mod_perl development team and numerous contributors. perl v5.14.2 2011-02-08 libapache2-mod-perl2-2.0.7::docs::api::APR::Base64(3pm)
Man Page

10 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. UNIX for Dummies Questions & Answers

Why are there LFs in my base64?

And is there a good way of taking them out? I've been playing around a bit with using b64 to embed images in HTML (and trying to stay within the spec). I've noticed that with openssl's base64 encoder, the output files have newline characters @ every 65th column or so. This renders them useless,... (2 Replies)
Discussion started by: SilversleevesX
2 Replies

6. UNIX for Dummies Questions & Answers

Using SED to fix base64_decode attack/hack

last night our server was hit with an attack that infected every php file on the server and inserted the following code /*god_mode_on*/eval(base64_decode with a ton of other characters after. As it infected every php file i have been trying to clean it using a sed command to go through... (2 Replies)
Discussion started by: derrickyoung95
2 Replies

7. Shell Programming and Scripting

This function (decode64) runs on gawk but not on busybox awk

Hello, I'm trying to figure out a way to use a decode64 function in an embedded system who has few utilities, including busybox. Right now have something like this (taken from "google base64-and-base85-encoding-awk-scripts" sorry, I'm not able to post urls yet) _decode64() { &&... (4 Replies)
Discussion started by: chilicuil
4 Replies

8. Shell Programming and Scripting

Rearrange a file (2000 base64 strings in 1 row into 1 string by rows)

I have 1 row which contains abouts 20000 base64 string. e.g: /p4bdllBS8qcvW/69GUYej8nEv6gwt7UAYl0g==WZdjwTUQX9UEKsT/zWaZdQ==uI would like rearrange this file by base64 strings. So the output should be this ( 1 string in 1 row): 69GUYej8nEv6gwt7UAYl0g== WZdjwTUQX9UEKsT/zWaZdQ==How could I do... (4 Replies)
Discussion started by: freeroute
4 Replies

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

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