How do you think this number is encoded?

Discussion in 'PHP' started by hassanahmad2, Aug 21, 2009.

  1. #1
    Hello guys,

    Can anyone tell me how does this number 237163 produces MjM3MTYz. I know it can be converted back also from the string.

    What I want to know is what encoding mechanism is used for this process?
    Has anyone seen anything like this before?

    Any help will be greatly appreciated.

    Thanks,
    Hassan
     
    hassanahmad2, Aug 21, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <?php echo base64_encode(237163); ?>
    PHP:
    base64_decode to decode. Note, this is not an encryption.
     
    premiumscripts, Aug 21, 2009 IP
    hassanahmad2 likes this.
  3. hassanahmad2

    hassanahmad2 Active Member

    Messages:
    243
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thank you so much.
    I don't know why I didn't think of it in the first place. :p
     
    hassanahmad2, Aug 21, 2009 IP