TCipher.Free

Decrements the reference count of a TCipher instance; if the reference count reaches zero, clears the sensitive information stored in the instance and frees memory occupied by the instance.

Syntax:

procedure TCipher.Free;

Remarks:

Example:

uses
  tfCiphers;

// demonstrates what Free and IsAssigned methods are doing
var
  Cipher: TCipher;

begin
  Writeln(Cipher.IsAssigned);     // False
  Cipher:= TCipher.GetInstance('AES_CTR');
  Writeln(Cipher.IsAssigned);     // True
  Cipher.Free;
  Writeln(Cipher.IsAssigned);     // False
end;