b64

command module
v0.0.0-...-ef5743f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2018 License: MIT Imports: 7 Imported by: 0

README

b64

Build Status Go Report Card codecov GoDoc Go project version MIT Licensed

A small utility to convert files to and from base64

In my work I need from time to time to convert a file to base64 to send via a REST API using curl and sometimes convert back to the original format. I could do this using uuencode or with a single line in Python but it is more fun and instructive to write my own utility.

Install

go get github.com/go-br/b64

Examples of use

Encodes fileName to base64 and sends the content to screen

b64 fileName

Decode a base64 file and show the content on the screen

b64 -decode fileName

Encodes a file to base64 and saves the contents to a file pointed by -output

b64 -output=fileName.b64 fileName

Contributing

  • Fork the repo on GitHub
  • Clone the project to your own machine
  • Create a branch with your modifications git checkout -b fantastic-feature.
  • Then commit your changes git commit -m 'Implementation of new fantastic feature'
  • Make a push to your branch git push origin fantastic-feature.
  • Submit a Pull Request so that we can review your changes

Documentation

Overview

Copyright (c) 2017 Cesar Gimenes - MIT License

A small utility to convert files to and from base64

Examples of use

Encodes fileName to base64 and sends the content to screen

    b64 fileName

Decode a base64 file and show the content on the screen

    b64 -decode fileName

Encodes a file to base64 and saves the contents to a file pointed by *-output*

    b64 -output=fileName.b64 fileName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL