Base 64 encoded string


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Base 64 encoded string
# 1  
Old 09-07-2011
Base 64 encoded string

Could anyone of you please give me some idea to decode base 64 encoded value in ksh?
# 2  
Old 09-07-2011
This User Gave Thanks to yazu For This Post:
# 3  
Old 09-07-2011
Code:
 
echo "YOURSTRING" | perl -pe 'use MIME::Base64; print MIME::Base64::decode($_);'

This User Gave Thanks to itkamaraj For This Post:
# 4  
Old 09-07-2011
There is also the base64 program that's part of the GNU coreutils:

Code:
$ base64 --help |grep -F -- -d
  -d, --decode          Decode data.

This User Gave Thanks to radoulov For This Post:
# 5  
Old 09-07-2011
It works!. Thank you very much :-)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

2. UNIX for Dummies Questions & Answers

Need someone to decrypt an encoded text

Hello everybody, i have a big issue, i have to decode a big text in base64 a lot of times but there are 2 problems: i am a noob with unix system and shell, and i have problems with openssl and i can't decode anything. can anyone decode for me that base64? need a powerful computer, i can give some... (16 Replies)
Discussion started by: supermarco2020
16 Replies

3. Shell Programming and Scripting

Upper to lower case in encoded file

Hi All, I want to change the out put of a decode file from lower to upper. i used tr command but facing issue. set -vx id=$(id) dt=$(date) store=$1 if ]; then cd $APPL_TOP/local/bin cp .sqlpass.Z $$.temp.Z uncompress $$.temp.Z sed -e s/sqlpass/$$.sqlpass/ $$.temp >... (5 Replies)
Discussion started by: nag_sathi
5 Replies

4. Shell Programming and Scripting

[Solved] Decoding a base 64 string

Is it possible to decode a base 64 string in linux or unix. If so, related commands or reference notes would be really helpful. (1 Reply)
Discussion started by: chandu123
1 Replies

5. Red Hat

CentOS 6.1 base install (like FreeBSD base install)?

Hello, What is the simplest way to install CentOS 6.1 with console base-system only using official LiveDVD image on VirtualBox machine? I'd like to get simplest console with network support like FreeBSD base installation. Then, install services which I need. The installer jest extracts the... (2 Replies)
Discussion started by: newbie_develope
2 Replies

6. Shell Programming and Scripting

HTML Encoded characters -- Perl

Hello all I have a string like " Have Fun for the rest of the day !. I will meet you tomorrow!" ! is the HTML Equivalent of ! symbol. From the above string, i would like to remove only the HTML encoded special characters. Output should be like " Have Fun for the rest of the day... (4 Replies)
Discussion started by: vasuarjula
4 Replies

7. Shell Programming and Scripting

decoding URL encoded strings

Hi, I have a couple pages of URL encoded strings that I need to unencode (they were originally in Arabic). So the first step is to unencode the strings and then to translate them to English. They are actually lists of words so the translation from Arabic to English shouldn't be too complicated.... (1 Reply)
Discussion started by: ed111
1 Replies

8. UNIX for Advanced & Expert Users

Convert UTF-8 encoded hex value to a character

Hi, I have a non-ascii character (Ŵ), which can be represented in UTF-8 encoding as equivalent hex value (\xC5B4). Is there a function in unix to convert this hex value back to display the charcter ? (10 Replies)
Discussion started by: sumirmehta
10 Replies

9. Shell Programming and Scripting

Parse XML file encoded in ISO-8859-1

Dear Friends, I have an XML file that's encoded in ISO-8859-1. I have some European characters coming in from 2 fields (Name, Comments) in the XML file. Can anyone suggest if there are any functions in Unix to read those characters? Using shell programming, can I parse this xml file? Please... (0 Replies)
Discussion started by: madhavim
0 Replies

10. UNIX for Dummies Questions & Answers

sed replace encoded string

I'm trying to replace the string %2d from a text file using sed, and I can't seem to find the right key combination. I've tried: sed 's/%2d/-/' foo The above doesn't work, presumably because of the %. :mad: Interestingly, I don't get any kind of error message at all. It appears to... (5 Replies)
Discussion started by: mg1
5 Replies
Login or Register to Ask a Question