encrypt method

String encrypt(
  1. String text
)

Implementation

String encrypt(String text) {
  if (!isInitialized) {
    return _empty;
  }
  try {
    return _cipher!.encrypt(text, iv: _iv!).base16;
  } catch (e) {
    return _empty;
  }
}