How Do I Decrypt a PHP file?

Discussion in 'Programming' started by mberman84, Jun 14, 2008.

  1. #1
    I have this file that my company wrote a while back and we lost the original. How do i decrypt this? I didnt' code it, so i dont know how to recode it. Here's what it looks like:

    $o="QAAAJztjbnEnZGtmdHQ6JWRrYgIcZnUlOTsoAUA5DQ4OAD
    AAwwCwDQ1AHg0Csm5jOiVhaGhzYgKQAgECsAP2dQEAYmNuc3
    QlOQORDidDYnRuYGkAACc7OHdvdycNKC0nQUtOSUwAACdRNA
    1CaWRoY2J1Jz0nSUIAAFMqU0JEJ1dPVypCSURIQ0IAEFUnUSc2
    KTcNUEJFAgBvc3N3AAA9KChwcHApaWJzKnNiZCllAABufSgNUEZ
    VSU5JQD0nU29uASB0J2Fua2InAIB3dQmAZHNiYycAAGV+J2Rod
    351bmBvcydrZnAAACknU2gndWJxYnV0YidiaWAQSG5pYggAaHU
    nY2IIsSdzBHl0c3UCEG5kc2t+JwUAb25lbgUQKScNLQAAKA0jaG
    hoOiV3RFY+bWlSSQAARldzN19QU0J+Sn1UNmhSQgAAUXZTNm
     
    mberman84, Jun 14, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    how is it decrypting? zend? what does the file do with $o ?
     
    crath, Jun 14, 2008 IP
  3. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How do we know this was really your/your company's script? There have been multiple instances already on here with people asking for help with decrypting a file they made and then it turns out that file has a copyright/warning at the top and that the poster shouldn't have access to the file. They were just trying to get a free script by having someone else decrypt it for them.
     
    zerxer, Jun 14, 2008 IP
  4. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #4
    Is author still interested? I asked this myself. Anyhow author of topic did not post complete string or we could atleast try, this one seems base64_encoded string to me, and is not quite a sutiry.

    Dear author: if you ever revisit to see it, try

    print base64_decode($o);


    Some people also do this for encrypting

    $o = base64_encode(gzcompress("MY_PHP_CODE"));

    //revers

    $code = gzuncompress(base64_decode($o));



    BUT, without knowing the encoding policy all remains guess.

    regards
     
    Vooler, Jun 17, 2008 IP