encryptContent static method
Implementation
static Future<List<int>?> encryptContent(
CacheOptions options,
List<int>? bytes,
) {
final checkedCipher = options.cipher;
if (bytes != null && checkedCipher != null) {
return checkedCipher.encrypt(bytes);
}
return Future.value(bytes);
}