Last active
March 25, 2022 08:35
-
-
Save Deleplace/e1c4aee06cb759086c3c1c872358d225 to your computer and use it in GitHub Desktop.
Encode bytes to base64
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'; | |
void main() { | |
var hello = "Hello world"; | |
List<int> data = utf8.encode(hello); | |
var s = base64.encode(data); | |
print(s); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment