Operating System - Linux
1825950 Members
2849 Online
109690 Solutions
New Discussion

how to get one base64 encode string from linux shell

 

how to get one base64 encode string from linux shell

i want to do a test with smtp auth connection, but i do not how to get one base64 string from bash shell, such as for "123456"

rgds,
Frederick
frederick van targero
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: how to get one base64 encode string from linux shell

I need more details to help you.

smtp

simple mail transfer protocol

A test for you.

sendmail -v -d8 -d38 someone@domain.com

type some text


.



You'll get a fine test of your mail server and transfer situation.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: how to get one base64 encode string from linux shell

To generate the base64 stuff though, I'd say perl, and MIME::Base64 module.

It should be installed by default on a RH8 system, otherwise CPAN should be able to grab it for you pretty easily.

A simple line such as:

echo blah | perl -e 'use MIME::Base64 qw(encode_base64);print encode_base64(<>);'

is all that's required (this is outlined in the man page for MIME::Base64).
One long-haired git at your service...