An open API service indexing awesome lists of open source software.

https://github.com/synacktraa/base32

small portable base32 algorithm implemented in C.
https://github.com/synacktraa/base32

base32 c-language decoding encoding

Last synced: 4 months ago
JSON representation

small portable base32 algorithm implemented in C.

Awesome Lists containing this project

README

          


Base32
















---


Small and portable Base32 Converter cli tool written in C.

---


Usage

### Compile
> make
---

### Help

Output:

```terminal
*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 base32Out)
```
---
## Encoding

```bash
./base_32 -e -i "Portable cli tool o_O"
```
Output:

```bash
KBXXE5DBMJWGKIDDNRUSA5DPN5WCA327J4==
```
---

```bash
./base_32 -e -f infile
```
Output:

```bash
KN4W4QLDNN2HEYLB
```
---
## Decoding
```bash
./base_32 -d -f encoded
```
Output:

```terminal
small portable base32 in C.
```
---
```bash
./base_32 -d -i KN2GC4RAMFXGIICGN5ZGWIDUNBUXGICQOJXWUZLDOQQDUKI=
```
Output:

```bash
Star this project :), it boosts my ego.
```

---

### **Redirecting output to a file**

Using the redirection operator↴

```bash
./base_64 -d -i KN2GC4RAMFXGIICGN5ZGWIDUNBUXGICQOJXWUZLDOQQDUKI= > out.txt
```

Using the -o argument with a filename↴

```bash
./base_64 -d -f encoded -o out
```

Using the -o argument without a filename↴

```bash
./base_64 -e -f infile -o
```

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

---

© This tool is based on ASCII charset.

---
## **License**

### MIT

Copyright for portions of project [base32](https://github.com/SynAcktraa/base32) are held by [Github Account [SynAcktraa](https://github.com/SynAcktraa) Owner, 2022] as part of project [base32](https://github.com/SynAcktraa/base32)

All other copyright for project [base32](https://github.com/SynAcktraa/base32) are held by [Github Account [SynAcktraa](https://github.com/SynAcktraa) Owner, 2022].

Check the [LICENSE](LICENSE) for more details.