Last active
January 26, 2025 15:53
-
-
Save stevenspiel/24472254557c5467055ab34598af5644 to your computer and use it in GitHub Desktop.
Utility to convert base64-encoded strings to hex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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