Encodings
Base58 (Flickr)
Base58 with the lowercase run before the uppercase one. Flickr short URLs
Encoding / Base58
Base58 (Flickr)
Base58 with the cases swapped.
- Overhead
- +37% on random bytes
- Padding
- none
- Standard
- Flickr short URLs (flic.kr)
- Used by
- flic.kr
family 4 / 20
Sample
- Out
- 2YgeAWqfYGoyyBKja
- Back
- "hello world!"
123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ
Access
- Import
import { base58flickr } from "@agntn/encodings/base58" - CLI
encodings encode base58-flickr 'hello world!' - Tryplayground with the sample above
- Kinbase58, base58check, base58-ripple
Same 58 characters as Bitcoin's, different order. Flickr put lowercase before uppercase for its flic.kr short links, and that one swap makes every string look different.
encode("base58", "hello world"); // "StV1DL6CwTryKyV"
encode("base58-flickr", "hello world"); // "rTu1dk6cWsRYjYu"
Notice the cases flipped and the digits stayed? That's the whole difference. Decode a Flickr string with the Bitcoin alphabet and you get valid, wrong bytes. identify can't tell them apart either, both decode. Know your source.