encryption_box_encrypt method

Block cipher algorithms pad data to cipher block size so encrypted data can be longer then original data. Client should store the original data size after encryption and use it after decryption to retrieve the original data from decrypted data.

Implementation

Future<ResultOfEncryptionBoxEncrypt> encryption_box_encrypt(
    ParamsOfEncryptionBoxEncrypt params) async {
  final res = await _tonCore.request(
      'crypto.encryption_box_encrypt', params.toString());
  return ResultOfEncryptionBoxEncrypt.fromMap(res);
}