Skip to content


Playing with base64

This is a WordPress blog, so let’s start by using a WordPress plugin which encodes and decodes base64.

This original script comes from MrAndersonMD

Note: the image tag comprising a URL of 84 characters (not the actual binary image) is encoded. See the next post for the encoded img tag.
Note2: the original text is additionally altered when encoded, through htmlentity substitution. e.g double quote ” is encoded in base64 as & quot; (no space)

    Base64 = 148 characters

Jmx0O2ltZyBzcmM9ICZxdW90O2h0dHA6Ly9iYXNlMTZiLm9yZy9kb2M
vc3BlY2lmaWNhdGlvbi92ZXJzaW9uLzAuMS9sYXJyeS5naWYmcXVvdD
sgYWx0PSZxdW90O0xhcnJ5JnF1b3Q7LyZndDs=

Pressing Decode reveals the URL and the page subsequently displays the linked resource.

See the next post for equivalent encoding in Base16b.

Posted in Code Sample.

Tagged with , , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.