#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

#1830 in Text processing

Download history 195/week @ 2024-11-15 123/week @ 2024-11-22 182/week @ 2024-11-29 242/week @ 2024-12-06 289/week @ 2024-12-13 88/week @ 2024-12-20 103/week @ 2024-12-27 173/week @ 2025-01-03 261/week @ 2025-01-10 149/week @ 2025-01-17 134/week @ 2025-01-24 221/week @ 2025-01-31 178/week @ 2025-02-07 153/week @ 2025-02-14 166/week @ 2025-02-21 203/week @ 2025-02-28

790 downloads per month
Used in uuinfo

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