Created
September 30, 2024 18:03
-
-
Save loic-sharma/bb19ede18efd0eb98c10e642aeedd9c7 to your computer and use it in GitHub Desktop.
Dart base64 encode
This file contains 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'; | |
void main() { | |
String text = "This string will be base64 encoded!"; | |
print(base64Encode(utf8.encode(text))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment