decryptDataFromFileSync method

Uint8List decryptDataFromFileSync(
  1. String srcFilePath
)

Decrypts binary data from srcFilePath file synchronously.

Returns Uint8List object containing decrypted data.

Implementation

Uint8List decryptDataFromFileSync(String srcFilePath) {
  srcFilePath = srcFilePath.trim();
  AesCryptArgumentError.checkNullOrEmpty(_password, 'Empty password.');
  AesCryptArgumentError.checkNullOrEmpty(
      srcFilePath, 'Empty source file path.');
  return _Cryptor.init(_passBytes, _owMode, _userdata)
      .decryptDataFromFileSync(srcFilePath);
}