perform base64encoding

Signed-off-by: abbr <wenfred@gmail.com>