base62 icon indicating copy to clipboard operation
base62 copied to clipboard

Base62 encoding for arbitrary precision integers

Results 3 base62 issues
Sort by recently updated
recently updated
newest added

While the library claims to deal with int64 and *big.Int, what is not written is that it does not deal well with negative numbers. e.g. try: ``` hash := base62.EncodeInt64(-8357271895528378933)...

Hello! Currently there is no error checking in decoder, e.g. in [`DecodeToInt64()`](https://github.com/mattheath/base62/blob/master/base62.go#L138): ``` idx = strings.IndexRune(e.encode, v) ... c = int64(idx) * ... ``` `strings.IndexRune()` could [return `-1`](https://golang.org/pkg/strings/#IndexRune) here. Would...