#binary-data #convert-binary #ascii #bases #variety #base58 #base-16

basen

Convert binary data to ASCII with a variety of supported bases

1 unstable release

0.1.0 Aug 2, 2022

#967 in Text processing

Download history 612/week @ 2023-12-05 283/week @ 2023-12-12 427/week @ 2023-12-19 329/week @ 2023-12-26 492/week @ 2024-01-02 446/week @ 2024-01-09 575/week @ 2024-01-16 284/week @ 2024-01-23 310/week @ 2024-01-30 301/week @ 2024-02-06 454/week @ 2024-02-13 737/week @ 2024-02-20 425/week @ 2024-02-27 434/week @ 2024-03-05 530/week @ 2024-03-12 456/week @ 2024-03-19

1,880 downloads per month
Used in snug

MIT/Apache

11KB
208 lines

BaseN

Convert binary data to ASCII with a variety of supported bases.

assert_eq!(BASE58.encode_const_len(&1557596383284252235u64), "4chjCmhbVFY");
assert_eq!(BASE58.decode_const_len("4chjCmhbVFY"), Some(1557596383284252235u64));

Characters required (without padding):

bits 32 64 128 256 512
Base10 10 20 39 78 155
Base16 8 16 32 64 128
Base32 7 13 26 52 103
Base36 7 13 25 50 100
Base58 6 11 22 44 88
Base62 6 11 22 43 86
Base64 6 11 22 43 86

No runtime deps