Answers for "base64 encoding decoding flutter"

1

decode, encode base64 dart

import 'dart:convert';
String encoded = base64.encode(utf8.encode(credentials)); // dXNlcm5hbWU6cGFzc3dvcmQ=
String decoded = utf8.decode(base64.decode(encoded));     // username:password
Posted by: Guest on August-28-2021
0

base64encode flutter

String text = "base64encode.tech";
Codec<String, String> stringToBase64 = utf8.fuse(base64);
String encoded = stringToBase64.encode(text);
print('base64: $encoded');
Posted by: Guest on November-07-2021

Code answers related to "base64 encoding decoding flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language