Answers for "base64 encode string dart"

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

Code answers related to "Dart"

Browse Popular Code Answers by Language