Skip to content

realapire/base64-encode-decode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Base64 Encoding and Decoding

This repository contains a C program for encoding and decoding data in Base64 format. Base64 is a widely used encoding scheme that represents binary data as a text string, making it suitable for transporting binary data over text-based protocols like email or HTTP.

Usage

To use the Base64 encoder and decoder, follow these steps:

  1. Clone this repository to your local machine.

  2. Navigate to the repository directory.

  3. Compile the program using a C compiler. For example, using GCC:

    gcc -o base64 main.c
  4. Run the program with the following command:

    ./base64 <input>

    Replace <input> with the data you want to encode or decode.

Features

  • base64_encode: Encodes binary data into Base64 format.
  • base64_decode: Decodes Base64 encoded strings back to binary data.

Examples

Encoding

./base64 "Hello, World!"
# Encoded Base64: SGVsbG8sIFdvcmxkIQ==

###Decoding

./base64 "SGVsbG8sIFdvcmxkIQ=="
# Decoded Value: Hello, World!

About

Simple C Application to Encode/Decode Base64 strings

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages