Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eiri/base69
Base69 is a binary-to-text encoding scheme
https://github.com/eiri/base69
Last synced: 28 days ago
JSON representation
Base69 is a binary-to-text encoding scheme
- Host: GitHub
- URL: https://github.com/eiri/base69
- Owner: eiri
- License: mit
- Created: 2020-01-22T04:51:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-19T00:57:28.000Z (over 4 years ago)
- Last Synced: 2024-06-20T03:32:28.708Z (5 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Base69
[![Test](https://github.com/eiri/base69/workflows/test/badge.svg?branch=master)](https://github.com/eiri/base69/actions?query=workflow%3Atest)
[![Go Report Card](https://goreportcard.com/badge/github.com/eiri/base69)](https://goreportcard.com/report/github.com/eiri/base69)Base69 is a binary-to-text encoding scheme. This is port of [pshihn/base69](https://github.com/pshihn/base69). Why Base69 when Base64 is adequate? Because it's _NICE!_
## Usage
```golang
package mainimport (
"fmt""github.com/eiri/base69/encoding/base69"
)func main() {
msg := "Hello, 世界"
encoded := base69.Encode([]byte(msg))
fmt.Println(string(encoded))
decoded := base69.Decode(encoded)
fmt.Println(string(decoded))
}
```Output:
```
kAZAtABBeB8ATBgAtBuASApB8ARBYA1=
Hello, 世界
```## Testing
`go test -v ./...`
## Licence
[MIT](https://github.com/eiri/base69/blob/master/LICENSE)