The string [My bonnie is over the ] encodes into base64 as: [TXkgYm9ubmllIGlzIG92ZXIgdGhlICAgICAgICAgIA==] The string [TXkgYm9ubmllIGlzIG92ZXIgdGhlICAgICAgICAgIA==] decodes from base64 as: [My bonnie is over the ]