#1 2022-04-23 20:11:28

igors233
Member
Registered: 2012-09-10
Posts: 241

TAesWriteStream replacement

Since TAesWriteStream is no longer used in mormot2 (pure mormot2 mode), is there a replacement class or any pointers in how to write one?

BTW I'm trying to make encrypted TSynLog descendant and so idea is to chain streams as TSynZipCompressor->TAesWriteStream->TFileStream.

Offline

#2 2022-04-24 07:00:39

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,652
Website

Re: TAesWriteStream replacement

This is a good idea.

The problem with the old TAesWriteStream is that it was not safe, since it was using the ECB mode (i.e. no chaining), which is to be avoided.
I will add a class able to use any of the AES modes, with optional IV setting, and proper password derivation.

Offline

#3 2022-05-04 17:01:57

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Re: TAesWriteStream replacement

I'm also interested in encrypted logs to prevent my competitors from understanding internal flow in application.

Offline

Board footer

Powered by FluxBB