Base64 encryption
static String encodeBase64(String data) { var content = utf8.encode(data); var digest = base64Encode(content); return digest; }