Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-05-2012, 12:09 AM   PM User | #1
listerdl
Regular Coder

 
Join Date: Mar 2011
Posts: 157
Thanks: 7
Thanked 0 Times in 0 Posts
listerdl is an unknown quantity at this point
What is this: base64_decode

Any idea?? I am very confused - is it a reference to a backdoor?

Just wondering thanks
listerdl is offline   Reply With Quote
Old 08-05-2012, 12:21 AM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
It's a way of transferring data across the web, like UTF-8 and binary. Just search for it and you will find a lot of info.
DrDOS is offline   Reply With Quote
Old 08-05-2012, 12:32 AM   PM User | #3
listerdl
Regular Coder

 
Join Date: Mar 2011
Posts: 157
Thanks: 7
Thanked 0 Times in 0 Posts
listerdl is an unknown quantity at this point
thanks -

I guess I was asking b/c a lot of the stuff I read was in a hacking context - and this line of php was from a wordpress blog i run, hence my concern....

You reckon its not a hack or can this such transfer protocols suggest a breach?

Here is the full line:

Code:
$imgData = base64_decode("R0lGODlhUAAMAIAAAP8AAP///yH5BAAHAP8ALAAAAABQAAwAA
Thanks
listerdl is offline   Reply With Quote
Old 08-05-2012, 12:32 AM   PM User | #4
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,504
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Bit hard to explain in great detail in a short post but it basically base64 is text that represents something such as a string, file, filestream etc.

The base64 text can then be sent via http, email etc. If you open a .eml (email file from outlook express) in something like notepad++ that has a file attached, you will see a long column of what appears to be random letters and numbers at the bottom. That is a base64 encoded file.

At the other end, it can be decoded to restore the original content.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:28 PM.


Advertisement
Log in to turn off these ads.