A Dart library for converting between different bases, e.g., decimal ↔ binary, octal ↔ hexadecimal
See example/main.dart
final BaseConversion hexadecimalToBase58Converter = BaseConversion(
from: '0123456789abcdef',
to: base58,
);
final String base58Value = hexadecimalToBase58Converter('415a59758fb933b6049b050a556dd4d916b7b483f6966615');
// base58Value == '6xZA4Qt9vH7rePWeT5WLaVUZNjB6u6rGc'
final String hexadecimal = hexadecimalToBase58Converter.inverse()('GjWGF6jERR9ymrC1bHcGmsJYkLMDoaySr');
// hexadecimal == 'ac93c8d619c76f823f184110759b278f246cc7cc3cadcac3'final BaseConversion decimalEmojiToHexadecimalConverter = BaseConversion(
from: '0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣',
to: base16,
zeroPadding: true,
);
final String hexadecimal = decimalEmojiToHexadecimalConverter('5️⃣1️⃣9️⃣6️⃣6️⃣');
// hexadecimal == '0CAFE'
final String decimalEmoji = decimalEmojiToHexadecimalConverter.inverse()('DEADC0DE');
// decimalEmoji == '3️⃣7️⃣3️⃣5️⃣9️⃣2️⃣9️⃣0️⃣5️⃣4️⃣'base2-01base3-012base4-0123base5-01234base6-012345base8-01234567base10-0123456789base12-0123456789ABbase16-0123456789ABCDEFbase32-ABCDEFGHIJKLMNOPQRSTUVWXYZ234567base32hex-0123456789ABCDEFGHIJKLMNOPQRSTUVbase36-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZbase58-123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyzbase62-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzbase64-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/base64url-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_
from - String of numeral symbols representing the digits of from numeral system.
to - String of numeral symbols representing the digits of to numeral system.
See documentation for more
