Skip to content

Instantly share code, notes, and snippets.

@stevenspiel
Last active January 26, 2025 15:53
Show Gist options
  • Save stevenspiel/24472254557c5467055ab34598af5644 to your computer and use it in GitHub Desktop.
Save stevenspiel/24472254557c5467055ab34598af5644 to your computer and use it in GitHub Desktop.
Utility to convert base64-encoded strings to hex
import 'dart:convert';
// Utility to convert base64-encoded strings to hex
void main() {
String base64PublicKey = "";
print(base64Decode(base64PublicKey)
.map((e) => e.toRadixString(16).padLeft(2, '0'))
.join());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment