Releases: NDXDeveloper/dcpcrypt-lazarus
Releases · NDXDeveloper/dcpcrypt-lazarus
DCPcrypt v2.0.6
DCPcrypt Cryptographic Component Library v2.0.6
Lazarus / Free Pascal edition
Installation
Option 1 - Packages (IDE)
- Open
src/dcpcrypt.lpk(runtime) andsrc/dcpcrypt_laz.lpk(design-time) in the Lazarus IDE - 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.pasQuick 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
- README - Full documentation
- Ciphers API - TDCP_cipher reference
- Block Ciphers API - TDCP_blockcipher reference
- Hashes API - TDCP_hash reference
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
DCPcrypt Cryptographic Component Library v2.0.5
Lazarus / Free Pascal edition
Installation
Option 1 - Packages (IDE)
- Open
src/dcpcrypt.lpk(runtime) andsrc/dcpcrypt_laz.lpk(design-time) in the Lazarus IDE - 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.pasQuick 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
- README - Full documentation
- Ciphers API - TDCP_cipher reference
- Block Ciphers API - TDCP_blockcipher reference
- Hashes API - TDCP_hash reference
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