I have ported a Delphi 7.1 application to Delphi 10.3. I have some simple encrypting/decryption functions. And if I encrypt string values and encrypt them, everything is fine: