base16 1.0.2
base16: ^1.0.2 copied to clipboard
Simple base16(hex) encoder. Used to encode bytes to semi-readable String format, e.g. to encode bytes of UUID, ObjectID etc.
example/example.dart
import 'dart:typed_data';
import 'package:base16/base16.dart';
final Uint8List _objectIDBytes = Uint8List.fromList(const [142, 71, 191, 93, 246, 100, 21, 15, 0, 205, 16, 37]);
void main() => print(hex(_objectIDBytes));