Home - atrocy/HexOBinary GitHub Wiki

Introduction

With HexOBinary you can encode input into Binary, Octal or Hexadecimal !

You can either use an Encoder object by doing HexOBinary.new() Or Convert and Deconvert functions.

Note: non object functions do NOT support an empty separator. yet.

Here's 2 examples using Encoder object and using functions:

Encoder Object:

local HexOBinary = require(path.to.module)
local encode_text = "Hello World!"

local Encoder = HexOBinary.new()

print(Encoder:Binary(encode_text)) --> (insert binary output)
print(Encoder:Decode()) --> Hello World!

Non-Encoder Functions:

local HexOBinary = require(path.to.module)
local encode_text = "Hello World!"

local binary = HexOBinary.Convert(encode_text, 'binary')
print(binary) --> (insert binary output)
print(HexOBinary.Deconvert(binary, 'binary')) --> Hello World!
⚠️ **GitHub.com Fallback** ⚠️