- Notifications
You must be signed in to change notification settings - Fork0
braheezy/z85
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository provides a package and CLI for working withZ85.
Z85 [is] a format for representing binary data as printable text. Z85 is a derivative of existing Ascii85 encoding mechanisms, modified for better usability, particularly for use in source code.
Get a pre-built binary from the latestRelease page.
Or install with Go:
go install github.com/braheezy/z85@latest
Use thez85
tool to encode binary to Z85 string format, or vice-versa. Supports pipes:
To use the library, import it and rungo mod tidy
to have it installed automatically:
// main.gopackage mainimport z85"github.com/braheezy/z85/pkg"funcmain() {inputData:= []byte{0x86,0x4F,0xD2,0x6F,0xB5,0x59,0xF7,0x5B}encodedString,_:=z85.Encode(inputData)println(encodedString)}
>go mod tidy>go run main.goHelloWorld
Full decode and encode examples can be found inmain.go.
About
z85 format