Skip to content

Releases: NDXDeveloper/dcpcrypt-lazarus

DCPcrypt v2.0.6

11 Feb 12:20

Choose a tag to compare

DCPcrypt Cryptographic Component Library v2.0.6

Lazarus / Free Pascal edition

Installation

Option 1 - Packages (IDE)

  1. Open src/dcpcrypt.lpk (runtime) and src/dcpcrypt_laz.lpk (design-time) in the Lazarus IDE
  2. Install them - cipher and hash components appear on the component palette

Option 2 - Direct use (no IDE)

Add src/, src/Ciphers/ and src/Hashes/ to your project unit search paths:

fpc -Fupath/to/dcpcrypt-lazarus/src -Fupath/to/dcpcrypt-lazarus/src/Ciphers -Fupath/to/dcpcrypt-lazarus/src/Hashes myprogram.pas

Quick Example

uses DCPrijndael, DCPsha256, DCPcrypt2, Classes, SysUtils;
var
  Cipher: TDCP_rijndael;
begin
  Cipher := TDCP_rijndael.Create(nil);
  Cipher.InitStr('my passphrase', TDCP_sha256);
  WriteLn(Cipher.EncryptString('Hello World'));
  Cipher.Burn;
  Cipher.Free;
end.

Documentation

Requirements

  • Free Pascal 3.2.0+ or Lazarus 2.0+
  • No external dependencies

Full Changelog: v2.0.5...v2.0.6

DCPcrypt v2.0.5

31 Jan 19:44

Choose a tag to compare

DCPcrypt Cryptographic Component Library v2.0.5

Lazarus / Free Pascal edition

Installation

Option 1 - Packages (IDE)

  1. Open src/dcpcrypt.lpk (runtime) and src/dcpcrypt_laz.lpk (design-time) in the Lazarus IDE
  2. Install them - cipher and hash components appear on the component palette

Option 2 - Direct use (no IDE)

Add src/, src/Ciphers/ and src/Hashes/ to your project unit search paths:

fpc -Mdelphi -Fupath/to/dcpcrypt-lazarus/src -Fupath/to/dcpcrypt-lazarus/src/Ciphers -Fupath/to/dcpcrypt-lazarus/src/Hashes myprogram.pas

Quick Example

uses DCPrijndael, DCPsha256, DCPcrypt2, Classes, SysUtils;
var
  Cipher: TDCP_rijndael;
begin
  Cipher := TDCP_rijndael.Create(nil);
  Cipher.InitStr('my passphrase', TDCP_sha256);
  WriteLn(Cipher.EncryptString('Hello World'));
  Cipher.Burn;
  Cipher.Free;
end.

Documentation

Requirements

  • Free Pascal 3.2.0+ or Lazarus 2.0+
  • No external dependencies

Full Changelog: https://github.com/NDXDeveloper/dcpcrypt-lazarus/commits/v2.0.5