base64 encode and decode in shell script