Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

z85 format

License

NotificationsYou must be signed in to change notification settings

braheezy/z85

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Installation

Get a pre-built binary from the latestRelease page.

Or install with Go:

go install github.com/braheezy/z85@latest

Usage

Use thez85 tool to encode binary to Z85 string format, or vice-versa. Supports pipes:

demo

Library

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

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp