Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Mar 2011
    Posts
    164
    Thanks
    7
    Thanked 0 Times in 0 Posts

    What is this: base64_decode

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

    Just wondering thanks

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,089
    Thanks
    15
    Thanked 246 Times in 246 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Mar 2011
    Posts
    164
    Thanks
    7
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,346
    Thanks
    60
    Thanked 527 Times in 514 Posts
    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.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •