add base64 encode and decode

add base64 encode and decode