https://github.com/mtraver/base91
A Go implementation of base91 encoding with an interface as close as possible to that of encoding/base64
https://github.com/mtraver/base91
base91 encoding encodings golang
Last synced: 5 months ago
JSON representation
A Go implementation of base91 encoding with an interface as close as possible to that of encoding/base64
- Host: GitHub
- URL: https://github.com/mtraver/base91
- Owner: mtraver
- License: other
- Created: 2018-08-25T19:02:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-20T06:58:31.000Z (over 7 years ago)
- Last Synced: 2025-09-18T16:03:26.683Z (9 months ago)
- Topics: base91, encoding, encodings, golang
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# base91
[](https://goreportcard.com/report/github.com/mtraver/base91)
[](https://godoc.org/github.com/mtraver/base91)
A Go implementation of base91 encoding with an interface as close as possible to that of the standard library's `encoding/base64` (https://golang.org/pkg/encoding/base64).
The `encoding/base64` `Encoding` type and this package's `Encoding` type both satisfy this interface:
```go
type BaseNEncoding interface {
Decode(dst, src []byte) (int, error)
DecodeString(s string) ([]byte, error)
DecodedLen(n int) int
// The signature of Encode is different in this package and
// encoding/base64: this package returns the number of bytes
// written because the encoded length cannot be known from just
// the number of bytes to encode, whereas it can with base64.
// Encode(dst, src []byte)
EncodeToString(src []byte) string
EncodedLen(n int) int
}
```