encode static method

String encode(
  1. String content,
  2. String secret
)

encode a message

AESEncryptor.encode('message');

Implementation

static String encode(String content, String secret) {
  Uint8List plain = utf8.encode(base64.encode(utf8.encode(content)));
  return base64.encode(_cipher(true, secret).process(plain));
}