📜  decode, encode base64 dart 代码示例

📅  最后修改于: 2022-03-11 14:48:04.399000             🧑  作者: Mango

代码示例1
import 'dart:convert';
String encoded = base64.encode(utf8.encode(credentials)); // dXNlcm5hbWU6cGFzc3dvcmQ=
String decoded = utf8.decode(base64.decode(encoded));     // username:password