encrypt method

String encrypt(
  1. String data
)

Encrypts the given data.

Returns the encrypted data as a base64-encoded string.

Implementation

String encrypt(String data) {
  // Currently only AES-256 is supported
  return _aesEncrypt(data);
}