Coder Social home page Coder Social logo

base64's Introduction

Base64




Small and portable Base64 Converter cli tool written in C.


Usage

Compile

make


Help

Output:

*IMP*: Put space separated data in quotes.
|CLI options|:-
        -e - Encodes the data string
        -d - Decodes the data string
        -i - takes next argument as data string
        -f - takes next argument as filename
        -o - takes next argument as filename and saves the output in file
             (if filename is not given, it defaults to base64Out)

Encoding

./base_64 -e -i "Base64 Converter"

Output:

QmFzZTY0IENvbnZlcnRlcg==

./base_64 -e -f infile

Output:

aHR0cHM6Ly9naXRodWIuY29tL1N5bkFja3RyYWE=

Decoding

./base_64 -d -f encoded

Output:

small portable base64 in C.

./base_64 -d -i "U3RhciB0aGlzIHByb2plY3QgOiksIGl0IGJvb3N0cyBteSBlZ28u"

Output:

Star this project :), it boosts my ego.

Redirecting output to a file

Using the redirection operator↴
./base_64 -d -i "U3RhciB0aGlzIHByb2plY3QgOiksIGl0IGJvb3N0cyBteSBlZ28u" > out.txt
Using the -o argument with a filename↴
./base_64 -d -f encoded -o out
Using the -o argument without a filename↴
./base_64 -e -f infile -o

ps: "-o" without a parameter uses the default filename 'base64Out'


© This tool is based on ASCII charset.


License

Copyright for portions of project base64 are held by [Github Account SynAcktraa Owner, 2022] as part of project base64

All other copyright for project base64 are held by [Github Account SynAcktraa Owner, 2022].

Check the LICENSE for more details.

base64's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.