Delphi - Encrypt and Decrypt with Rijndael on delphi 10.4

I'm trying to encrypt and decrypt with Rijndael but it always fail the encryption/decryption process.

Here is my code :

procedure TFormLicenseTest.GenKeyAndEncrypt(const Checkpwd: string; const MaxFileLimit : string)
var LbRijndael1   : TLbRijndael;
HashedMaxFile : string;
Cr            : string;
De            : string;
begin
  LbRijndael1.CipherMode := cmECB;
  LbRijndael1.KeySize    := ks256;
  HashedMaxFile          := THashMD5.GetHashString(Trim(Checkpwd));
  LbRijndael1.GenerateKey(HashedMaxFile);
  Cr := LbRijndael1.EncryptString(MaxFileLimit);
  De := LbRijndael1.DecryptString(MaxFileLimit);
end

The key is generate but the encryptionString doesn't work ...

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum