WINSOFT components and applications

Crypto

Delphi and C++Builder cryptography library.
The Crypto library does not include implementations of cryptographic algorithms. It provides access to Windows cryptographic services only.
Download Crypto 1.5 trial version
Download demo example
Order Crypto license $160 USD (license for one developer)
Order Crypto multi-license $480 USD (license for all developers in company)
Order Crypto year upgrades license $80 USD (registered users only)
Order Crypto year upgrades multi-license $240 USD (registered users only)
Order Winsoft Component Package

FAQ

How can I use AES encryption and decryption?

const SecretKey =
  TBytes.Create($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $A, $B, $C, $D, $E, $F);
const InitializationVector =
  TBytes.Create($F, $E, $D, $C, $B, $A, $9, $8, $7, $6, $5, $4, $3, $2, $1, $0);

var CipherText: TBytes;

// AES encryption
with TSymmetricKey.Create(skAES, cmCBC, SecretKey) do
try
  IV := InitializationVector;
  CipherText := Encrypt('Hello, world!');
finally
  Free;
end;

// AES decryption
with TSymmetricKey.Create(skAES, cmCBC, SecretKey) do
try
  IV := InitializationVector;
  const PlainBytes = Decrypt(CipherText);
  const PlainText = TEncoding.UTF8.GetString(PlainBytes);
  ShowMessage(PlainText);
finally
  Free;
end;